mirror of
https://github.com/MaJerle/lwmem.git
synced 2025-01-13 21:42:53 +08:00
26 lines
943 B
C
26 lines
943 B
C
ints allocated for 15 integers
|
|
|
|
B = Free block; A = Address of free block; S = Free size
|
|
Allocation available bytes: 52 bytes
|
|
|
|
B 0: A: 0x00B6B160, S: 0, next B: 0x00B6B564; Start block
|
|
B 1: A: 0x00B6B564, S: 52, next B: 0x00B6B598
|
|
B 2: A: 0x00B6B598, S: 0, next B: 0x00000000; End of region
|
|
|
|
ints re-allocated for 12 integers
|
|
|
|
B = Free block; A = Address of free block; S = Free size
|
|
Allocation available bytes: 64 bytes
|
|
|
|
B 0: A: 0x00B6B160, S: 0, next B: 0x00B6B558; Start block
|
|
B 1: A: 0x00B6B558, S: 64, next B: 0x00B6B598
|
|
B 2: A: 0x00B6B598, S: 0, next B: 0x00000000; End of region
|
|
|
|
New block reallocated to the same address as previous one
|
|
|
|
B = Free block; A = Address of free block; S = Free size
|
|
Allocation available bytes: 120 bytes
|
|
|
|
B 0: A: 0x00B6B160, S: 0, next B: 0x00B6B520; Start block
|
|
B 1: A: 0x00B6B520, S: 120, next B: 0x00B6B598
|
|
B 2: A: 0x00B6B598, S: 0, next B: 0x00000000; End of region |