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