Uses of Class
org.djutils.serialization.EndianUtil
Packages that use EndianUtil
Package
Description
Interface and code to serialize and deserialize data.
The different types of (de)serializers..
Utility classes for djutils-serialization.
-
Uses of EndianUtil in org.djutils.serialization
Fields in org.djutils.serialization declared as EndianUtilModifier and TypeFieldDescriptionstatic final EndianUtil
EndianUtil.BIG_ENDIAN
Directly usable bigEndian EndianUtil.static final EndianUtil
EndianUtil.LITTLE_ENDIAN
Directly usable littleEndian EndianUtil.Methods in org.djutils.serialization that return EndianUtilModifier and TypeMethodDescriptionstatic EndianUtil
EndianUtil.bigEndian()
Construct an EndianUtil object that uses bigEndian encoding.static EndianUtil
EndianUtil.littleEndian()
Construct an EndianUtil object that uses littleEndian encoding.Methods in org.djutils.serialization with parameters of type EndianUtilModifier and TypeMethodDescriptionstatic 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.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.static <U extends org.djunits.unit.Unit<U>>
UTypedMessage.getUnit
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Retrieve and decode a DJUNITS unit.Constructors in org.djutils.serialization with parameters of type EndianUtilModifierConstructorDescriptionSerialDataDecoder
(EndianUtil endianUtil) Construct a new SerialDataDecoder. -
Uses of EndianUtil in org.djutils.serialization.serializers
Methods in org.djutils.serialization.serializers with parameters of type EndianUtilModifier and TypeMethodDescriptionDoubleMatrixSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) DoubleScalarSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) V[]
DoubleVectorArraySerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) DoubleVectorSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) FloatMatrixSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) FloatScalarSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) FloatVectorSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) final E[]
ObjectArraySerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) final E[][]
ObjectMatrixSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Serializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Deserialize an object of type T.abstract E
ArrayOrMatrixSerializer.deSerializeElement
(byte[] buffer, int offset, EndianUtil endianUtil) Deserializer for one array or matrix element (without type prefix) must be implemented in implementing sub classes.protected void
ArrayOrMatrixWithUnitSerializer.encodeUnit
(U unit, byte[] message, Pointer pointer, EndianUtil endianUtil) Code a unit, including MoneyUnits.protected void
ObjectWithUnitSerializer.encodeUnit
(U unit, byte[] message, Pointer pointer, EndianUtil endianUtil) Code a unit, including MoneyUnits.protected U
ArrayOrMatrixWithUnitSerializer.getUnit
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Retrieve and decode a DJUNITS unit.protected U
ObjectWithUnitSerializer.getUnit
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Retrieve and decode a DJUNITS unit.void
DoubleMatrixSerializer.serialize
(M adm, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
DoubleScalarSerializer.serialize
(S ads, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
DoubleVectorArraySerializer.serialize
(V[] adva, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
DoubleVectorSerializer.serialize
(V adv, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
FloatMatrixSerializer.serialize
(M afm, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
FloatScalarSerializer.serialize
(S afs, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
FloatVectorSerializer.serialize
(V afv, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final void
ObjectArraySerializer.serialize
(E[] array, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final void
ObjectMatrixSerializer.serialize
(E[][] matrix, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
Serializer.serialize
(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil) Serialize an object of type T; not including the prefix byte(s).abstract void
ArrayOrMatrixSerializer.serializeElement
(E object, byte[] buffer, int offset, EndianUtil endianUtil) Serializer for one array or matrix element (without type prefix) must be implemented in implementing sub classes.final void
ArrayOrMatrixWithUnitSerializer.serializeWithPrefix
(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final void
BasicPrimitiveArrayOrMatrixSerializer.serializeWithPrefix
(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final void
ObjectArraySerializer.serializeWithPrefix
(E[] array, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final void
ObjectMatrixSerializer.serializeWithPrefix
(E[][] matrix, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final void
ObjectSerializer.serializeWithPrefix
(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
Serializer.serializeWithPrefix
(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil) Serialize an object of type T including the prefix byte(s). -
Uses of EndianUtil in org.djutils.serialization.util
Methods in org.djutils.serialization.util with parameters of type EndianUtilModifier and TypeMethodDescriptionstatic String
SerialDataDumper.serialDataDumper
(EndianUtil endianUtil, byte[] bytes) Create a SerialDataDumper object with addressOffset 0; use it to dump an array of bytes and return the dump as a String.static String
SerialDataDumper.serialDataDumper
(EndianUtil endianUtil, int addressOffset, byte[] bytes) Create a SerialDataDumper object; use it to dump an array of bytes and return the dump as a String.Constructors in org.djutils.serialization.util with parameters of type EndianUtilModifierConstructorDescriptionSerialDataDumper
(EndianUtil endianUtil) Construct a new SerialDataDumper.SerialDataDumper
(EndianUtil endianUtil, int addressOffset) Construct a new SerialDataDumper.