org.glassfish.grizzly.memory
Class MemoryUtils
java.lang.Object
org.glassfish.grizzly.memory.MemoryUtils
public class MemoryUtils
- extends Object
Class has useful methods to simplify the work with Buffer
s.
- Author:
- Alexey Stashok
- See Also:
MemoryManager
,
WrapperAware
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryUtils
public MemoryUtils()
allocateByteBuffer
public static ByteBuffer allocateByteBuffer(MemoryManager memoryManager,
int size)
reallocateByteBuffer
public static ByteBuffer reallocateByteBuffer(MemoryManager memoryManager,
ByteBuffer oldByteBuffer,
int size)
releaseByteBuffer
public static void releaseByteBuffer(MemoryManager memoryManager,
ByteBuffer byteBuffer)
Copyright © 2012 Oracle Corporation. All Rights Reserved.