Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7741227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:58:18+00:00 2026-06-01T08:58:18+00:00

How is this C code converted to delphi? static unsigned char tempbuf[128*1024]; Thanks

  • 0

How is this C code converted to delphi?

static unsigned char tempbuf[128*1024];

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:58:19+00:00Added an answer on June 1, 2026 at 8:58 am

    The array itself is declared like this in Delphi:

    tempbuf: array[0..(128*1024)-1] of Byte; 
    

    Regarding the static portion – that depends on where the array is declared. If it is declared in global memory, then you don’t need to declare it as static in Delphi, just put it in a global var section:

    unit ...;
    
    interface
    
    var
      tempbuf: array[0..(128*1024)-1] of Byte; 
    
    ...
    
    implementation
    
    ...
    
    end.
    

    Or:

    unit ...;
    
    interface
    
    ...
    
    implementation
    
    var
      tempbuf: array[0..(128*1024)-1] of Byte; 
    
    ...
    
    end.
    

    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 var in Delphi:

    type
      TSomeClass = class
      class var
        tempbuf: array[0..(128*1024)-1] of Byte; 
      end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

please how could this C++ function be converted to Delphi : int To_Asm_Fnc(dword Amem,
This is the Delphi code I'm trying to convert to .net: s1 := Copy
I need this PHP code converted to C#. Is there a tool or a
I need to convert this code into Delphi. But it's too complicated to handle...
I'm trying to convert this code fragment into Delphi and I got stuck on
I have a piece of code that the ARC converter turned into this... //
This code - Convert.ToDecimal(28.9100000000000000).ToString(c) will convert a string containing a decimal value to a
I have written this code to convert string in such format 0(532) 222 22
I cannot figure out how to convert this code from C# to VB.net. It
Could anyone please help me convert this code to vb.net, I have tried it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.