Class BinaryDtoCodec<T extends BinaryDto<T>>
java.lang.Object
io.datarouter.bytes.binarydto.codec.BinaryDtoCodec<T>
public class BinaryDtoCodec<T extends BinaryDto<T>> extends Object
-
Field Summary
Fields Modifier and Type Field Description Class<T>dtoClassList<Field>fieldsList<? extends BinaryDtoFieldSchema<?>>fieldSchemas -
Method Summary
Modifier and Type Method Description Tdecode(byte[] bytes)Tdecode(byte[] bytes, int offset)TdecodePrefix(byte[] bytes, int offset, int numFields)intdecodePrefixLength(byte[] bytes, int offset, int numFields)LengthAndValue<T>decodeWithLength(byte[] bytes)LengthAndValue<T>decodeWithLength(byte[] bytes, int offset)TdeepCopy(T dto)byte[]encode(T dto)byte[]encodePrefix(T dto, int numFields)List<Field>getFieldsOrdered()static <T extends BinaryDto<T>>
BinaryDtoCodec<T>of(Class<? extends T> dtoClass)
-
Field Details
-
Method Details
-
of
-
getFieldsOrdered
-
encode
-
encodePrefix
-
decode
-
decode
-
decodeWithLength
-
decodeWithLength
-
decodePrefixLength
public int decodePrefixLength(byte[] bytes, int offset, int numFields) -
decodePrefix
-
deepCopy
-