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