Serializer class
The pinned Connectanum WAMP FlatBuffers binding.
Dynamic WAMP arguments use CBOR vectors inside a FlatBuffers envelope. Decoded vectors borrow the input, which must remain unchanged while the message is used. Native read-only buffers can retain their backing owner. Transport capability negotiation is separate from this stateless codec.
- Inheritance
-
- Object
- AbstractSerializer
- Serializer
Constructors
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
-
deserialize(
Uint8List? message) → AbstractMessage? -
Deserialize a given message
override
-
deserializeApplication(
Uint8List encodedValue) → Object? - Decode a bounded application CBOR span when a native consumer accesses it. This preserves the same integer and binary values as deserialize.
-
deserializeMetadata(
Uint8List encodedDictionary) → Map< String, dynamic> - Decode a validated native metadata dictionary without reading application vectors. WAMP integers retain their portable value across Dart platforms.
-
deserializePPT(
Uint8List binPayload) → PPTPayload -
Deserialize and prepare payload from PPT Mode
override
-
metadataFor(
AbstractMessage message) → Map< String, dynamic> - Return a bounded, detached logical dictionary, including retained unknown keys and current model edits. Application vectors are never accessed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
retainMetadata(
AbstractMessage message, Uint8List encodedDictionary) → void - Preserve the original dictionary when a native bridge reconstructs a message from routing fields. Application vectors are never materialized.
-
retainMetadataValues(
AbstractMessage message, Map< String, dynamic> dictionary) → void - Snapshot logical metadata for a reconstructed or decorated message. This has the same retention semantics as retainMetadata, with bounded encoding and detached binary values before any retained state is changed.
-
serialize(
AbstractMessage message) → Uint8List -
Serialize a given message, should return a String or a UInt8List. The
return type is dynamic, because the socket class takes a dynamic type to
send either a string or a binary message.
override
-
serializeFragments(
AbstractMessage message, {bool borrowBinaryArguments = false}) → List< Uint8List> ? -
Encode one WAMP frame while retaining its encoded application byte views.
Concatenate the fragments in order; each fragment is part of that frame.
Keep their backing owners and contents valid until transmission completes.
Set
borrowBinaryArgumentsto retain materialized binary argument bytes inside CBOR vectors. The default keeps their detached encoded storage.override -
serializePPT(
PPTPayload pptPayload) → Uint8List -
A typed FlatBuffers PPT payload is an application-provided byte buffer.
Its schema belongs to the application; this codec does not interpret it.
Dynamic values require their own payload encoding, such as CBOR.
override
-
serializePPTFragments(
{Uint8List? argumentsBytes, Uint8List? argumentsKeywordsBytes, List? arguments, Map< String, dynamic> ? argumentsKeywords}) → Uint8List -
Serializer PPT payload from already-encoded args / kwargs fragments when
the payload serializer matches the surrounding transport serializer.
override
-
serializeTransportFragments(
AbstractMessage message) → List< Uint8List> - Encode a complete transport frame, borrowing binary application arguments. Even an unfragmented frame is finished once; retain all fragment owners and contents until transmission completes.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited