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