public class ByteType.ByteEncoding
extends java.lang.Object
| Constructor and Description |
|---|
ByteEncoding(EncoderImpl encoder,
DecoderImpl decoder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
encodesJavaPrimitive() |
boolean |
encodesSuperset(TypeEncoding<java.lang.Byte> encoding) |
int |
getConstructorSize() |
protected DecoderImpl |
getDecoder() |
protected EncoderImpl |
getEncoder() |
byte |
getEncodingCode() |
protected int |
getFixedSize() |
ByteType |
getType() |
java.lang.Class<T> |
getTypeClass() |
int |
getValueSize(T val) |
boolean |
isFixedSizeVal() |
byte |
readPrimitiveValue() |
java.lang.Byte |
readValue() |
void |
skipValue() |
void |
write(byte val) |
void |
writeConstructor() |
void |
writeValue(byte val) |
void |
writeValue(java.lang.Byte val) |
public ByteEncoding(EncoderImpl encoder, DecoderImpl decoder)
protected int getFixedSize()
public byte getEncodingCode()
getEncodingCode in interface PrimitiveTypeEncoding<java.lang.Byte>public ByteType getType()
public void writeValue(java.lang.Byte val)
public void write(byte val)
public void writeValue(byte val)
public boolean encodesSuperset(TypeEncoding<java.lang.Byte> encoding)
public java.lang.Byte readValue()
public byte readPrimitiveValue()
public boolean encodesJavaPrimitive()
encodesJavaPrimitive in interface TypeConstructor<java.lang.Byte>encodesJavaPrimitive in interface TypeEncoding<java.lang.Byte>public final boolean isFixedSizeVal()
public final int getValueSize(T val)
public final void skipValue()
public final void writeConstructor()
writeConstructor in interface PrimitiveTypeEncoding<T>writeConstructor in interface TypeEncoding<T>public int getConstructorSize()
getConstructorSize in interface PrimitiveTypeEncoding<T>getConstructorSize in interface TypeEncoding<T>protected EncoderImpl getEncoder()
public java.lang.Class<T> getTypeClass()
getTypeClass in interface TypeConstructor<T>protected DecoderImpl getDecoder()