Class ComparableShortArrayCodec
java.lang.Object
io.datarouter.bytes.codec.array.shortarray.ComparableShortArrayCodec
public class ComparableShortArrayCodec extends Object
-
Field Summary
Fields Modifier and Type Field Description static ComparableShortArrayCodecINSTANCE -
Constructor Summary
Constructors Constructor Description ComparableShortArrayCodec() -
Method Summary
Modifier and Type Method Description short[]decode(byte[] bytes)short[]decode(byte[] bytes, int offset, int bytesLength)byte[]encode(short[] values)intencode(short[] values, byte[] bytes, int offset)intitemLength()
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ComparableShortArrayCodec
public ComparableShortArrayCodec()
-
-
Method Details
-
itemLength
public int itemLength() -
encode
public byte[] encode(short[] values) -
encode
public int encode(short[] values, byte[] bytes, int offset) -
decode
public short[] decode(byte[] bytes) -
decode
public short[] decode(byte[] bytes, int offset, int bytesLength)
-