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