Y
you_known
Unregistered / Unconfirmed
GUEST, unregistred user!
如何在delphi中使用realloc,memchr之类的函数?
memset,memcpy几个都有改写的方法,
procedure _memset(P: Pointer
B: Byte
count: Integer);cdecl;
begin
FillChar(P^, count, B);
end;
procedure _memcpy(dest, source: Pointer
count: Integer);cdecl;
begin
Move(source^, dest^, count);
end;
现在急需替代realloc,memchr的delphi函数。
memset,memcpy几个都有改写的方法,
procedure _memset(P: Pointer
B: Byte
count: Integer);cdecl;
begin
FillChar(P^, count, B);
end;
procedure _memcpy(dest, source: Pointer
count: Integer);cdecl;
begin
Move(source^, dest^, count);
end;
现在急需替代realloc,memchr的delphi函数。