|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.memcached.tapmessage.Util
public final class Util
The Util class provides utility functions for converting portions of byte arrays to values and putting values into byte arrays.
| Method Summary | |
|---|---|
static long |
fieldToValue(byte[] buffer,
int offset,
int length)
Converts a field in a byte array into a value. |
static void |
valueToFieldOffest(byte[] buffer,
int offset,
int length,
long l)
Puts a value into a specific location in a byte buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static long fieldToValue(byte[] buffer,
int offset,
int length)
buffer - The byte array that contains the valueoffset - The offset of where the value begins in the byte arraylength - The length of the field to be converted
public static void valueToFieldOffest(byte[] buffer,
int offset,
int length,
long l)
buffer - The buffer that the value will be written to.offset - The offset for where the value begins in the buffer.length - The length of the field in the arrayl - The value to be encoded into the byte array
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||