|
Apache Tomcat 6.0.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.jni.Buffer
public class Buffer
Buffer
| Constructor Summary | |
|---|---|
Buffer()
|
|
| Method Summary | |
|---|---|
static long |
address(java.nio.ByteBuffer buf)
Returns the memory address of the ByteBuffer. |
static java.nio.ByteBuffer |
calloc(int num,
int size)
Allocate a new ByteBuffer from memory and set all of the memory to 0 |
static java.nio.ByteBuffer |
create(long mem,
int size)
Allocate a new ByteBuffer from already allocated memory. |
static void |
free(java.nio.ByteBuffer buf)
Deallocates or frees a memory block used by ByteBuffer Warning : Call this method only on ByteBuffers that were created by calling Buffer.alloc or Buffer.calloc. |
static java.nio.ByteBuffer |
malloc(int size)
Allocate a new ByteBuffer from memory |
static java.nio.ByteBuffer |
palloc(long p,
int size)
Allocate a new ByteBuffer from a pool |
static java.nio.ByteBuffer |
pcalloc(long p,
int size)
Allocate a new ByteBuffer from a pool and set all of the memory to 0 |
static long |
size(java.nio.ByteBuffer buf)
Returns the allocated memory size of the ByteBuffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Buffer()
| Method Detail |
|---|
public static java.nio.ByteBuffer malloc(int size)
size - The amount of memory to allocate
public static java.nio.ByteBuffer calloc(int num,
int size)
num - Number of elements.size - Length in bytes of each element.
public static java.nio.ByteBuffer palloc(long p,
int size)
p - The pool to allocate fromsize - The amount of memory to allocate
public static java.nio.ByteBuffer pcalloc(long p,
int size)
p - The pool to allocate fromsize - The amount of memory to allocate
public static java.nio.ByteBuffer create(long mem,
int size)
mem - The memory to usesize - The amount of memory to use
public static void free(java.nio.ByteBuffer buf)
buf - Previously allocated ByteBuffer to be freed.public static long address(java.nio.ByteBuffer buf)
buf - Previously allocated ByteBuffer.public static long size(java.nio.ByteBuffer buf)
buf - Previously allocated ByteBuffer.
|
Apache Tomcat 6.0.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||