-
- All Implemented Interfaces:
public final class ScaleEncodedByteArrayAdapter extends ScaleCodecAdapter<ScaleEncodedByteArray>
An adapter for scale encoded ByteArray
-
-
Constructor Summary
Constructors Constructor Description ScaleEncodedByteArrayAdapter()
-
Method Summary
Modifier and Type Method Description ScaleEncodedByteArrayread(ByteArrayReader reader, KType type, List<Annotation> annotations)Reads (decodes) data to specified type ByteArraywrite(ScaleEncodedByteArray obj, KType type, List<Annotation> annotations)Writes (encodes) the object -
-
Method Detail
-
read
ScaleEncodedByteArray read(ByteArrayReader reader, KType type, List<Annotation> annotations)
Reads (decodes) data to specified type
- Parameters:
reader- a ByteArray reader thattype- expected typeannotations- a list of annotations.
-
write
ByteArray write(ScaleEncodedByteArray obj, KType type, List<Annotation> annotations)
Writes (encodes) the object
- Parameters:
obj- a generiic object to needs to be writtentype- a required KTypeannotations- a list of annotations.
-
-
-
-