setLazyPayload method
void
setLazyPayload({
- Uint8List? argumentsBytes,
- PayloadListDecoder? argumentsDecoder,
- Uint8List? argumentsKeywordsBytes,
- PayloadMapDecoder? argumentsKeywordsDecoder,
- 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;
}
}