How is this C code converted to delphi?
static unsigned char tempbuf[128*1024];
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The array itself is declared like this in Delphi:
Regarding the
staticportion – that depends on where the array is declared. If it is declared in global memory, then you don’t need to declare it asstaticin Delphi, just put it in a globalvarsection:Or:
Depending on whether the array needs to be accessible to other units or not.
On the other hand, if the array is a member of a class/struct instead, then declare it as a
class varin Delphi: