Class Serializers.VarLongSerializer
- java.lang.Object
-
- com.complexible.common.primitives.Serializers.VarLongSerializer
-
- Enclosing class:
- Serializers
public static final class Serializers.VarLongSerializer extends java.lang.Object
Serializes the given long to as many bytes as required.
-
-
Constructor Summary
Constructors Constructor Description VarLongSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
bytesRequired(long value)
long
deserialize(byte[] bytes)
long
deserialize(byte[] bytes, int offset, int length)
long
deserialize(java.nio.ByteBuffer bytes, int offset, int length)
byte[]
serialize(long value)
int
serialize(long value, byte[] bytes, int offset)
-
-
-
Method Detail
-
bytesRequired
public int bytesRequired(long value)
-
serialize
public byte[] serialize(long value)
-
serialize
public int serialize(long value, byte[] bytes, int offset)
-
deserialize
public long deserialize(byte[] bytes)
-
deserialize
public long deserialize(byte[] bytes, int offset, int length)
-
deserialize
public long deserialize(java.nio.ByteBuffer bytes, int offset, int length)
-
-