SerializerHelper class

Helper class for serialization serializes important java primitives.

Constructors

SerializerHelper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

byteArrayToInt(List<int> bytes) int
Convert bytes to a signed 64bit int.
byteArrayToLong(List<int> bytes) int
Convert bytes to a signed 64bit int.
castTest(String obj, int expected, int really, [int? num]) → void
short casting test.
intToByteArray(int value) List<int>
Convert signed 32bit int value to bytearray of length size.
longToByteArray(int value) List<int>
Convert signed 64bit int value to bytearray of length size.
peekLong(ByteStream in_) Future<int>
peekRawLong(ByteStream in_, int num) Future<List<int>>
readInt(ByteStream in_) Future<int>
Deserialize an int variable.
readLong(ByteStream in_) Future<int>
Deserialize a long variable.
readRawInt(ByteStream stream) Future<int>
readRawLong(ByteStream stream) Future<int>
readStackTraces(ByteStream in_) Future<StackTrace?>
Deserialize an array of StackTraceElement variable.
readString(ByteStream in_) Future<String?>
Deserialize a string variable.
writeInt(ByteSink out, int i) → void
Serialize an int variable.
writeLong(ByteSink out, int l) → void
Serialize a long variable.
writeRawInt(ByteSink sink, int value) → void
writeRawLong(ByteSink sink, int value) → void
writeStackTraces(ByteSink out, StackTrace? ste) → void
Serialize an array of StackTraces.
writeString(ByteSink out, String? s) → void
Serialize a string variable.

Constants

intSize → const int
intUid → const int
longSize → const int
longUid → const int
stacktraceUid → const int
stringUid → const int