| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.jni.Stdlib
public class Stdlib
Stdlib
| Constructor Summary | |
|---|---|
| Stdlib() | |
| Method Summary | |
|---|---|
| static long | calloc(int num,
       int sz)Allocates an array in memory with elements initialized to 0. | 
| static void | free(long mem)Deallocates or frees a memory block. | 
| static int | getpid()Get current process pid. | 
| static int | getppid()Get current process parent pid. | 
| static long | malloc(int sz)Allocates memory blocks. | 
| static boolean | memread(byte[] dst,
        long src,
        int sz)Read from plain memory | 
| static boolean | memset(long dst,
       int c,
       int sz)Sets buffers to a specified character | 
| static boolean | memwrite(long dst,
         byte[] src,
         int sz)Write to plain memory | 
| static long | realloc(long mem,
        int sz)Reallocate memory blocks. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Stdlib()
| Method Detail | 
|---|
public static boolean memread(byte[] dst,
                              long src,
                              int sz)
dst - Destination byte arraysrc - Source memory addresssz - Number of bytes to copy.
public static boolean memwrite(long dst,
                               byte[] src,
                               int sz)
dst - Destination memory addresssrc - Source byte arraysz - Number of bytes to copy.
public static boolean memset(long dst,
                             int c,
                             int sz)
dst - Destination memory addressc - Character to set.sz - Number of characters.public static long malloc(int sz)
sz - Bytes to allocate.
public static long realloc(long mem,
                           int sz)
mem - Pointer to previously allocated memory block.sz - New size in bytes.
public static long calloc(int num,
                          int sz)
num - Number of elements.sz - Length in bytes of each element.public static void free(long mem)
mem - Previously allocated memory block to be freed.public static int getpid()
public static int getppid()
| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||