Class ByteArraysCodec
java.lang.Object
io.datarouter.bytes.codec.list.bytearraylist.ByteArraysCodec
- All Implemented Interfaces:
Codec<ByteArrays,byte[]>
public class ByteArraysCodec extends Object implements 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
Fields Modifier and Type Field Description static ByteArraysCodecINSTANCE -
Constructor Summary
Constructors Constructor Description ByteArraysCodec() -
Method Summary
Modifier and Type Method Description ByteArraysdecode(byte[] bytes)LengthAndValue<ByteArrays>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
-