public class InMemoryByteBufferFactory extends Object
Constructor and Description |
---|
InMemoryByteBufferFactory() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
build(int length) |
ByteBuffer |
getAllocatedBuffer()
Returns the last allocated ByteBuffer used during creation, so that further inspection can be done during unit tests.
|
int |
getNumAllocations()
Returns the # ByteBuffer allocations that have occured, since this Factory may produce more than one in its
life
|
public ByteBuffer build(int length) throws IOException
IOException
public ByteBuffer getAllocatedBuffer()
public int getNumAllocations()
Copyright © 2009–2018 Performance Co-Pilot. All rights reserved.