Class Serializers.VarLongSerializer
java.lang.Object
com.complexible.common.primitives.Serializers.VarLongSerializer
- Enclosing class:
Serializers
Serializes the given long to as many bytes as required.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbytesRequired(long value) longdeserialize(byte[] bytes) longdeserialize(byte[] bytes, int offset, int length) longdeserialize(ByteBuffer bytes, int offset, int length) byte[]serialize(long value) intserialize(long value, byte[] bytes, int offset)
-
Constructor Details
-
VarLongSerializer
public VarLongSerializer()
-
-
Method Details
-
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
-