如何将c中的数据类型byte []转换为delphi?

时间:2012-09-27 16:56:21

标签: c delphi delphi-7 converter

这是我需要转换delphi的代码:

LPBYTE readCharBuff = NULL;
BYTE readBuffSize;

readCharBuff = new BYTE[200];
readBuffSize    = 200;

readCharBuff[readBuffSize] = '\0';

感谢您的帮助

1 个答案:

答案 0 :(得分:1)

以下是字面翻译:

var
  readCharBuff: PByte; 
  readBuffSize: Byte; 

readCharBuff := nil; 

GetMem(readCharBuff, 200); 
readBuffSize := 200; 

readCharBuff[readBuffSize] := $0;