Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QB_Universal - Dynamic Memory System
#4
A union is a UDT that allows multiple members to share the same memory location.

For example:
Code: (Select All)
union UnionName {
    int intValue;
    float floatValue;
    char charValue;
};
All of the members above occupy the same memory, and the size of the union is determined by the largest member (in this case, typically 4 bytes).

I've made a few modifications to the library.

Cheers!


Attached Files
.zip   libvar.zip (Size: 6.26 KB / Downloads: 7)
Reply


Messages In This Thread
RE: QB_Universal - Dynamic Memory Sytem - by a740g - 01-16-2026, 10:51 PM
RE: QB_Universal - Dynamic Memory Sytem - by Petr - 01-17-2026, 12:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)