AbstractMessageWithPayload class abstract

CALL,EVENT,RESULT,ERROR,PUBLISH,INVOCATION,YIELD may have a transparent payload

Inheritance

Constructors

AbstractMessageWithPayload({List? arguments, Map<String, dynamic>? argumentsKeywords})
Creates a message with optional positional and keyword arguments.

Properties

arguments ↔ List?
Positional arguments, decoded on first access when retained lazily.
getter/setter pair
argumentsKeywords ↔ Map<String, dynamic>?
Keyword arguments, decoded on first access when retained lazily.
getter/setter pair
debugEncodedArgumentsBytes → Uint8List?
Encoded positional arguments retained for diagnostics and tests.
no setter
debugEncodedArgumentsKeywordsBytes → Uint8List?
Encoded keyword arguments retained for diagnostics and tests.
no setter
e2eeProvider → WampE2eeProvider?
The provider attached for E2EE payload processing.
no setter
e2eeRuntimeContext → WampE2eeRuntimeContext?
Runtime context attached for E2EE payload processing.
no setter
hasDecodedPptPayload → bool
Whether the current argument view has already removed a PPT wrapper.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasLazyArguments → bool
Whether encoded positional arguments are waiting to be decoded.
no setter
hasLazyArgumentsKeywords → bool
Whether encoded keyword arguments are waiting to be decoded.
no setter
id ↔ int
getter/setter pairinherited
lazyPayloadEncoding → LazyPayloadEncoding?
Serializer associated with the retained lazy argument slices.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transparentBinaryPayload ↔ Uint8List?
The optional binary payload carried outside regular WAMP arguments.
getter/setter pair
wireArguments → List?
Positional arguments in the original wire-level payload view.
no setter
wireArgumentsKeywords → Map<String, dynamic>?
Keyword arguments in the original wire-level payload view.
no setter

Methods

attachE2eeProvider(WampE2eeProvider? provider) → void
Attaches provider without forcing retained payload bytes to decode.
attachE2eeRuntimeContext(WampE2eeRuntimeContext? runtimeContext) → void
Attaches runtimeContext without forcing retained payload bytes to decode.
copyPayloadTo(AbstractMessageWithPayload message) → void
Transfers the message payload to another message
ensureDecodedPayloadView({required String? pptScheme, required String? pptSerializer, required String? pptCipher, required String? pptKeyId}) → void
Unpacks PPT/E2EE payloads in place only when a caller actually touches the materialized payload getters. The original lazy bytes are retained so the message can still be forwarded without forcing a re-encode.
markPptPayloadDecoded() → void
Marks the current argument view as already unwrapped from PPT.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restoreLazyPayload(LazyMessagePayload payload) → void
Rehydrates a materialized message from a shared lazy payload view without forcing an eager decode. Packed PPT payloads are restored as outer arguments so decode-on-access still works for classic getters.
retainLazyPayload(LazyMessagePayload payload) → void
Retains payload as the wire-level source for future forwarding.
setLazyPayload({Uint8List? argumentsBytes, PayloadListDecoder? argumentsDecoder, Uint8List? argumentsKeywordsBytes, PayloadMapDecoder? argumentsKeywordsDecoder, LazyPayloadEncoding? encoding}) → void
Sets encoded payload slices that can be lazily decoded on demand.
toLazyPayload({Object? anchor}) → LazyMessagePayload
Exposes this message as a lazy payload view without eager re-encoding.
toString() → String
A string representation of this object.
inherited

Operators

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