public interface ByteBufferPool
ByteBuffer acquire(int size, boolean direct)
ByteBuffer of the given size.
The returned buffer may have a bigger capacity than the size being requested but it will have the limit set to the given size.
size- the size of the buffer
direct- whether the buffer must be direct or not
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.