Class VarIntBinaryDtoFieldCodec
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<Integer>
io.datarouter.bytes.binarydto.fieldcodec.primitive.VarIntBinaryDtoFieldCodec
public class VarIntBinaryDtoFieldCodec extends BinaryDtoBaseFieldCodec<Integer>
-
Constructor Summary
Constructors Constructor Description VarIntBinaryDtoFieldCodec() -
Method Summary
Modifier and Type Method Description intcompareAsIfEncoded(Integer left, Integer right)Override this with optimized implementations that avoid encoding.Integerdecode(byte[] bytes, int offset)LengthAndValue<Integer>decodeWithLength(byte[] bytes, int offset)byte[]encode(Integer value)Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
decodeLength, fixedLength, isFixedLength
-
Constructor Details
-
VarIntBinaryDtoFieldCodec
public VarIntBinaryDtoFieldCodec()
-
-
Method Details
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<Integer>
-
decode
- Overrides:
decodein classBinaryDtoBaseFieldCodec<Integer>
-
decodeWithLength
- Specified by:
decodeWithLengthin classBinaryDtoBaseFieldCodec<Integer>
-
compareAsIfEncoded
Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<Integer>
-