Class ByteArraysCodec
java.lang.Object
io.datarouter.bytes.codec.list.bytearraylist.ByteArraysCodec
- All Implemented Interfaces:
Codec<ByteArrays,byte[]>
VarInt size
VarInt for the length of each array
The concatenated arrays
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.datarouter.bytes.Codec
Codec.FunctionalCodec<A,B>, Codec.NullPassthroughCodec<A, B> -
Field Summary
FieldsFields inherited from interface io.datarouter.bytes.Codec
IDENTITY_INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] bytes) decode(byte[] bytes, int offset) byte[]encode(ByteArrays value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.bytes.Codec
encodeAndDecode
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ByteArraysCodec
public ByteArraysCodec()
-
-
Method Details
-
encode
- Specified by:
encodein interfaceCodec<ByteArrays,byte[]>
-
decode
- Specified by:
decodein interfaceCodec<ByteArrays,byte[]>
-
decode
-