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