org.glassfish.grizzly.memory
Class MemoryUtils
java.lang.Object
org.glassfish.grizzly.memory.MemoryUtils
public class MemoryUtils
- extends java.lang.Object
Class has useful methods to simplify the work with Buffers.
- 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 java.nio.ByteBuffer allocateByteBuffer(MemoryManager memoryManager,
int size)
reallocateByteBuffer
public static java.nio.ByteBuffer reallocateByteBuffer(MemoryManager memoryManager,
java.nio.ByteBuffer oldByteBuffer,
int size)
releaseByteBuffer
public static void releaseByteBuffer(MemoryManager memoryManager,
java.nio.ByteBuffer byteBuffer)
Copyright © 2011 Oracle Corpration. All Rights Reserved.