Slide 24
Slide 24 text
Array(Blob blob, unsigned capacity) {
_blob = blob;
_blob.set1(0, BL_ARRAY);
_blob.set4(CAPACITY_OFFSET, capacity);
_blob.set4(USED_OFFSET, FIRST_VALUE);
_blob.set4(SIZE_OFFSET, 0);
}
!
char data[128];
Blob blob(data)
Array array(blob, 128);
TYPE CAPACITY USED (13) SIZE (0)
13
0
(()()