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