Parameters

Construct a new instance of this output stream with this initial capacity
It is not an error to have this initial capacity be inaccurate. If the actual contents
end up being larger than the initialCapacity, then we will reallocate memory
if needed. If the actual contents are smaller, then we'll end up wasting some memory

Parameters

pool

the pool to use

initialCapacity

initial capacity to allocate for this stream

Public Methods

public
void
close()

Closes the stream. Owned resources are released back to the pool. It is not allowed to call
toByteBuffer after call to this method.