public class RawShortCodec extends Object implements ShortCodec
| Modifier and Type | Field and Description |
|---|---|
static RawShortCodec |
INSTANCE |
| Constructor and Description |
|---|
RawShortCodec() |
| Modifier and Type | Method and Description |
|---|---|
short |
decode(byte[] bytes,
int offset) |
byte[] |
encode(short value) |
int |
encode(short value,
byte[] bytes,
int offset) |
int |
length(short value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecodepublic static final RawShortCodec INSTANCE
public int length(short value)
length in interface ShortCodecpublic byte[] encode(short value)
encode in interface ShortCodecpublic int encode(short value,
byte[] bytes,
int offset)
encode in interface ShortCodecpublic short decode(byte[] bytes,
int offset)
decode in interface ShortCodecCopyright © 2009–2021. All rights reserved.