ZSerializer class
A zenoh serializer for building structured payloads.
Wraps ze_owned_serializer_t. Call finish to produce a ZBytes,
or dispose to release native resources without finishing.
Constructors
- ZSerializer()
- Creates an empty serializer.
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
-
dispose(
) → void - Releases native resources held by this serializer.
-
finish(
) → ZBytes - Finishes the serializer and returns the produced ZBytes.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serializeBool(
bool value) → void - Serializes a bool value.
-
serializeBytes(
Uint8List value) → void - Serializes a byte buffer.
-
serializeDouble(
double value) → void - Serializes a double value.
-
serializeFloat(
double value) → void - Serializes a float value.
-
serializeInt16(
int value) → void - Serializes an int16 value.
-
serializeInt32(
int value) → void - Serializes an int32 value.
-
serializeInt64(
int value) → void - Serializes an int64 value.
-
serializeInt8(
int value) → void - Serializes an int8 value.
-
serializeSequenceLength(
int length) → void - Serializes a sequence length header.
-
serializeString(
String value) → void - Serializes a UTF-8 string value.
-
serializeUint16(
int value) → void - Serializes a uint16 value.
-
serializeUint32(
int value) → void - Serializes a uint32 value.
-
serializeUint64(
int value) → void - Serializes a uint64 value.
-
serializeUint8(
int value) → void - Serializes a uint8 value.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited