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