LazyMessagePayload.encoded constructor

LazyMessagePayload.encoded({
  1. Uint8List? transparentBinaryPayload,
  2. LazyPayloadEncoding? encoding,
  3. WampE2eeProvider? e2eeProvider,
  4. WampE2eeRuntimeContext? e2eeRuntimeContext,
  5. Uint8List? argumentsBytes,
  6. Uint8List? argumentsKeywordsBytes,
  7. PayloadListDecoder? argumentsDecoder,
  8. PayloadMapDecoder? argumentsKeywordsDecoder,
  9. List? arguments,
  10. Map<String, dynamic>? argumentsKeywords,
  11. Object? anchor,
})

Creates a view backed by separately encoded positional and keyword data.

Implementation

factory LazyMessagePayload.encoded({
  Uint8List? transparentBinaryPayload,
  LazyPayloadEncoding? encoding,
  WampE2eeProvider? e2eeProvider,
  WampE2eeRuntimeContext? e2eeRuntimeContext,
  Uint8List? argumentsBytes,
  Uint8List? argumentsKeywordsBytes,
  PayloadListDecoder? argumentsDecoder,
  PayloadMapDecoder? argumentsKeywordsDecoder,
  List<dynamic>? arguments,
  Map<String, dynamic>? argumentsKeywords,
  Object? anchor,
}) {
  return LazyMessagePayload._(
    transparentBinaryPayload: transparentBinaryPayload,
    encoding: encoding,
    e2eeProvider: e2eeProvider,
    e2eeRuntimeContext: e2eeRuntimeContext,
    argumentsBytes: argumentsBytes,
    argumentsKeywordsBytes: argumentsKeywordsBytes,
    argumentsDecoder: argumentsDecoder,
    argumentsKeywordsDecoder: argumentsKeywordsDecoder,
    arguments: arguments,
    argumentsKeywords: argumentsKeywords,
    packedPayloadBytes: null,
    packedPayloadDecoder: null,
    anchor: anchor,
  );
}