1) Maybe you could store the bitwise-or of size and capacity on top of each other. If you restrict capacity to a power of two
2) you could store the capacity before the array payload
2) you could store the capacity before the array payload
No comments yet.