GLLib : memory
[GLLib]
memory access function (byte array manipulation)
More...Functions | |
static void | Mem_ArrayCopy (Object src, int src_position, Object dst, int dst_position, int length) throws Exception |
Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array. | |
static int | Mem_GetArray (byte[] src, int src_off, byte[] dst) throws Exception |
fill destination array with content of src array at specified offset | |
static byte | Mem_GetByte (byte[] src, int src_off) |
get a byte value from the specified array at specified offset | |
static int | Mem_GetInt (byte[] src, int src_off) |
get an int value from the specified array at specified offset | |
static long | Mem_GetLong (byte[] src, int src_off) |
get a long value from the specified array at specified offset | |
static short | Mem_GetShort (byte[] src, int src_off) |
get a short value from the specified array at specified offset | |
static Object | Mem_ReadArray (InputStream is) |
Read an array/multiarray, from an inputStream. | |
static int | Mem_SetArray (byte[] dst, int dst_off, byte[] src) throws Exception |
copies whole content of src array in dst array at specified offset | |
static int | Mem_SetByte (byte[] dst, int dst_off, byte src) |
set a byte value in a byte array at a given offset | |
static int | Mem_SetInt (byte[] dst, int dst_off, int src) |
set a int value in a byte array at a given offset | |
static int | Mem_SetLong (byte[] dst, int dst_off, long src) |
set a long value in a byte array at a given offset | |
static int | Mem_SetShort (byte[] dst, int dst_off, short src) |
set a short value in a byte array at a given offset | |
static int | Stream_Read (InputStream is) throws Exception |
static int | Stream_Read16 (InputStream is) throws Exception |
static int | Stream_Read32 (InputStream is) throws Exception |
static int | Stream_ReadFully (InputStream is, byte[] array, int offset, int length) |
Detailed Description
memory access function (byte array manipulation)
Function Documentation
static void Mem_ArrayCopy | ( | Object | src, | |
int | src_position, | |||
Object | dst, | |||
int | dst_position, | |||
int | length | |||
) | throws Exception [static, package, inherited] |
Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array.
- Parameters:
-
src - the source array. src_position - start position in the source array. dst - the destination array. dst_position - pos start position in the destination data. length - the number of array elements to be copied.
static int Mem_GetArray | ( | byte[] | src, | |
int | src_off, | |||
byte[] | dst | |||
) | throws Exception [static, package, inherited] |
fill destination array with content of src array at specified offset
- Parameters:
-
src - byte array to copy values from src_off - offset in the source array to find values at dst - destination byte array
- Returns:
- new src offset value
static byte Mem_GetByte | ( | byte[] | src, | |
int | src_off | |||
) | [static, package, inherited] |
get a byte value from the specified array at specified offset
- Parameters:
-
src - byte array to read value from src_off - offset in the byte array
- Returns:
- byte value
static int Mem_GetInt | ( | byte[] | src, | |
int | src_off | |||
) | [static, package, inherited] |
get an int value from the specified array at specified offset
- Parameters:
-
src - byte array to read value from src_off - offset in the byte array
- Returns:
- int value
static long Mem_GetLong | ( | byte[] | src, | |
int | src_off | |||
) | [static, package, inherited] |
get a long value from the specified array at specified offset
- Parameters:
-
src - byte array to read value from src_off - offset in the byte array
- Returns:
- long value
static short Mem_GetShort | ( | byte[] | src, | |
int | src_off | |||
) | [static, package, inherited] |
get a short value from the specified array at specified offset
- Parameters:
-
src - byte array to read value from src_off - offset in the byte array
- Returns:
- short value
static Object Mem_ReadArray | ( | InputStream | is | ) | [static, package, inherited] |
Read an array/multiarray, from an inputStream.
- Parameters:
-
is inputstream to read array from
- Returns:
- array or multiarray as an Object.
- Exceptions:
-
Exception if error occured.
static int Mem_SetArray | ( | byte[] | dst, | |
int | dst_off, | |||
byte[] | src | |||
) | throws Exception [static, package, inherited] |
copies whole content of src array in dst array at specified offset
- Parameters:
-
dst - byte array to modify dst_off - offset in the destination byte array array src - source byte array
- Returns:
- new offset value
static int Mem_SetByte | ( | byte[] | dst, | |
int | dst_off, | |||
byte | src | |||
) | [static, package, inherited] |
set a byte value in a byte array at a given offset
- Parameters:
-
dst - byte array to modify dst_off - offset in the byte array to modify src - byte value to set in the byte array
- Returns:
- new offset value
static int Mem_SetInt | ( | byte[] | dst, | |
int | dst_off, | |||
int | src | |||
) | [static, package, inherited] |
set a int value in a byte array at a given offset
- Parameters:
-
dst - byte array to modify dst_off - offset in the byte array to modify src - int value to set in the byte array
- Returns:
- new offset value
static int Mem_SetLong | ( | byte[] | dst, | |
int | dst_off, | |||
long | src | |||
) | [static, package, inherited] |
set a long value in a byte array at a given offset
- Parameters:
-
dst - byte array to modify dst_off - offset in the byte array to modify src - long value to set in the byte array
- Returns:
- new offset value
static int Mem_SetShort | ( | byte[] | dst, | |
int | dst_off, | |||
short | src | |||
) | [static, package, inherited] |
set a short value in a byte array at a given offset
- Parameters:
-
dst - byte array to modify dst_off - offset in the byte array to modify src - short value to set in the byte array
- Returns:
- new offset value
static int Stream_Read | ( | InputStream | is | ) | throws Exception [static, package, inherited] |
static int Stream_Read16 | ( | InputStream | is | ) | throws Exception [static, package, inherited] |
static int Stream_Read32 | ( | InputStream | is | ) | throws Exception [static, package, inherited] |
static int Stream_ReadFully | ( | InputStream | is, | |
byte[] | array, | |||
int | offset, | |||
int | length | |||
) | [static, package, inherited] |
Generated on Tue Sep 23 23:05:31 2008 for GLLib by
