Package com.complexible.common.primitives

# Class Serializers.VarLongSerializer

java.lang.Object
com.complexible.common.primitives.Serializers.VarLongSerializer

Enclosing class:
  `Serializers`

public static final class Serializers.VarLongSerializer extends Object
Serializes the given long to as many bytes as required.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VarLongSerializer()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `bytesRequired(long value)`
  `long`
  `deserialize(byte[] bytes)`
  `long`
  `deserialize(byte[] bytes, int offset, int length)`
  `long`
  `deserialize(ByteBuffer bytes, int offset, int length)`
  `byte[]`
  `serialize(long value)`
  `int`
  `serialize(long value, byte[] bytes, int offset)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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

    public long deserialize(ByteBuffer bytes, int offset, int length)