public final class VariableLengthEncoding
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
decodeInt(java.nio.ByteBuffer buffer)
Decodes a variable-length integer value stored at the current position
in the byte buffer.
|
static void |
encodeInt(int value,
java.nio.ByteBuffer buffer)
Encodes a given int value using a variable-length encoding.
|
public static void encodeInt(int value,
java.nio.ByteBuffer buffer)
value - The value to encodebuffer - The buffer to write the data topublic static int decodeInt(java.nio.ByteBuffer buffer)
buffer - The buffer to decode the data fromCopyright 2017 Kieker Project, http://kieker-monitoring.net