setLazyPayload method

void setLazyPayload({
  1. Uint8List? argumentsBytes,
  2. PayloadListDecoder? argumentsDecoder,
  3. Uint8List? argumentsKeywordsBytes,
  4. PayloadMapDecoder? argumentsKeywordsDecoder,
  5. LazyPayloadEncoding? encoding,
})

Sets encoded payload slices that can be lazily decoded on demand.

Implementation

void setLazyPayload({
  Uint8List? argumentsBytes,
  PayloadListDecoder? argumentsDecoder,
  Uint8List? argumentsKeywordsBytes,
  PayloadMapDecoder? argumentsKeywordsDecoder,
  LazyPayloadEncoding? encoding,
}) {
  _lazyPayloadEncoding = encoding;
  _pptPayloadDecoded = false;
  _retainedLazyPayload = null;
  if (argumentsBytes != null && argumentsDecoder != null) {
    _encodedArguments = argumentsBytes;
    _argumentsDecoder = argumentsDecoder;
    _arguments = null;
  }
  if (argumentsKeywordsBytes != null && argumentsKeywordsDecoder != null) {
    _encodedArgumentsKeywords = argumentsKeywordsBytes;
    _argumentsKeywordsDecoder = argumentsKeywordsDecoder;
    _argumentsKeywords = null;
  }
}