LazyMessagePayload.packed constructor

LazyMessagePayload.packed({
  1. Uint8List? transparentBinaryPayload,
  2. required LazyPayloadEncoding? encoding,
  3. required Uint8List packedPayloadBytes,
  4. required PackedPayloadDecoder packedPayloadDecoder,
  5. bool pptDecoded = true,
  6. WampE2eeProvider? e2eeProvider,
  7. WampE2eeRuntimeContext? e2eeRuntimeContext,
  8. Object? anchor,
})

Creates a view backed by one packed Payload Passthru Mode value.

Implementation

factory LazyMessagePayload.packed({
  Uint8List? transparentBinaryPayload,
  required LazyPayloadEncoding? encoding,
  required Uint8List packedPayloadBytes,
  required PackedPayloadDecoder packedPayloadDecoder,
  bool pptDecoded = true,
  WampE2eeProvider? e2eeProvider,
  WampE2eeRuntimeContext? e2eeRuntimeContext,
  Object? anchor,
}) {
  return LazyMessagePayload._(
    transparentBinaryPayload: transparentBinaryPayload,
    encoding: encoding,
    e2eeProvider: e2eeProvider,
    e2eeRuntimeContext: e2eeRuntimeContext,
    packedPayloadBytes: packedPayloadBytes,
    packedPayloadDecoder: packedPayloadDecoder,
    pptDecoded: pptDecoded,
    anchor: anchor,
  );
}