Keeps a cache of ArrayBuffers. Buffers are sized to a power of two. Only one buffer exists for any size at a time. It does not create new buffers for the same size.
ArrayBuffer
Clear all buffers.
Get a buffer for the given size.
Minimum number of bytes. Will be rounded up to the next highest power of two
The ArrayBuffer for the rounded size
Keeps a cache of
ArrayBuffer
s. Buffers are sized to a power of two. Only one buffer exists for any size at a time. It does not create new buffers for the same size.