Lines Matching defs:size
83 * size (or null if no suitable buffer is found).
85 ByteBuffer get(int size) {
93 if (buf.capacity() < size) {
100 if (bb.capacity() >= size) {
118 buf.limit(size);
159 * Returns a temporary buffer of at least the given size
161 static ByteBuffer getTemporaryDirectBuffer(int size) {
163 ByteBuffer buf = cache.get(size);
174 return ByteBuffer.allocateDirect(size);
297 public int size() { return s.size(); }
385 static MappedByteBuffer newMappedByteBuffer(int size, long addr,
394 new Object[] { new Integer(size),
435 static MappedByteBuffer newMappedByteBufferR(int size, long addr,
444 new Object[] { new Integer(size),