| Modifier and Type | Method and Description | 
|---|---|
(package private) static Serializer<?>[] | 
TypedMessage.buildEncoderList(boolean utf8,
                Object... content)
Build the list of serializers corresponding to the data in an Object array. 
 | 
static Object[] | 
TypedMessage.decode(byte[] buffer,
      Map<Byte,Serializer<?>> decoderMap,
      EndianUtil endianUtil)
Decode the message into an object array. 
 | 
static Object[] | 
TypedMessage.decodeToObjectDataTypes(byte[] buffer,
                       EndianUtil endianUtil)
Decode the message into an object array, constructing Java Object arrays and matrices where possible. 
 | 
static Object[] | 
TypedMessage.decodeToPrimitiveDataTypes(byte[] buffer,
                          EndianUtil endianUtil)
Decode the message into an object array, constructing Java Primitive data arrays and matrices where possible. 
 | 
String | 
EndianUtil.decodeUTF8String(byte[] message,
                int pointer)
Decode a String including the length int from the message byte array. 
 | 
T | 
Serializer.deSerialize(byte[] buffer,
           Pointer pointer,
           EndianUtil endianUtil)
Deserialize an object of type T. 
 | 
static byte[] | 
TypedMessage.encodeUTF16(EndianUtil endianUtil,
           Object... content)
Encode the object array into a byte[] message. 
 | 
static byte[] | 
TypedMessage.encodeUTF8(EndianUtil endianUtil,
          Object... content)
Encode the object array into a byte[] message. 
 | 
(package private) static Serializer<?> | 
TypedMessage.findEncoder(boolean utf8,
           Object object)
Find the serializer for one object. 
 | 
void | 
ObjectMatrixSerializer.serialize(E[][] matrix,
         byte[] buffer,
         Pointer pointer,
         EndianUtil endianUtil)  | 
void | 
ItemName.serialize(String object,
         byte[] buffer,
         Pointer pointer,
         EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s). 
 | 
void | 
Serializer.serialize(T object,
         byte[] buffer,
         Pointer pointer,
         EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s). 
 | 
void | 
ObjectMatrixSerializer.serializeWithPrefix(E[][] matrix,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)  | 
void | 
ObjectArraySerializer.serializeWithPrefix(E[] array,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)  | 
void | 
ItemName.serializeWithPrefix(String object,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)
Serialize an object of type T including the prefix byte(s). 
 | 
void | 
Serializer.serializeWithPrefix(T object,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)
Serialize an object of type T including the prefix byte(s). 
 | 
void | 
ObjectSerializer.serializeWithPrefix(T object,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)  | 
void | 
DjunitsArrayOrMatrixSerializer.serializeWithPrefix(T object,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)  | 
void | 
BasicPrimitiveArrayOrMatrixSerializer.serializeWithPrefix(T object,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)  | 
int | 
ObjectMatrixSerializer.size(E[][] matrix)  | 
int | 
ItemName.size(String object)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
 of type T is next in the data stream). 
 | 
int | 
Serializer.size(T object)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
 of type T is next in the data stream). 
 | 
int | 
ObjectMatrixSerializer.sizeWithPrefix(E[][] matrix)  | 
int | 
ItemName.sizeWithPrefix(String object)
Compute the number of bytes needed to serialize an object of type T (including the byte(s) that indicate that an object
 of type T is next in the data stream). 
 | 
int | 
Serializer.sizeWithPrefix(T object)
Compute the number of bytes needed to serialize an object of type T (including the byte(s) that indicate that an object
 of type T is next in the data stream). 
 | 
int | 
ObjectSerializer.sizeWithPrefix(T object)  | 
int | 
DjunitsArrayOrMatrixSerializer.sizeWithPrefix(T object)  | 
int | 
BasicPrimitiveArrayOrMatrixSerializer.sizeWithPrefix(T object)  | 
| Constructor and Description | 
|---|
ItemName(String string)
Construct a new ItemName. 
 | 
Copyright © 2018–2019 Delft University of Technology. All rights reserved.