Class BinaryDtoCodec<T extends BinaryDto>
java.lang.Object
io.datarouter.bytes.binarydto.codec.BinaryDtoCodec<T>
public class BinaryDtoCodec<T extends BinaryDto> 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 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>
BinaryDtoCodec<T>of(Class<? extends T> dtoClass)