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