Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
APIs from QB64PE and parameters defined As Any and unions of types ?
#7
(05-31-2024, 01:16 PM)Kernelpanic Wrote: An example of how unions and structures are used, and how much memory is used.

To explain again: In a union, the memory requirement is equal to the largest variable.
All variables in a union have to share this memory, so one have to know exactly which one one want to use.
In a structure, each variable gets its own memory space.

Thank you for explaining. 
I'm planning to give Spriggsy's _MEMGET handler a try, which allocates memory depending on type.
Reply


Messages In This Thread
RE: APIs from QB64PE and parameters defined As Any and unions of types ? - by madscijr - 05-31-2024, 02:52 PM



Users browsing this thread: 10 Guest(s)