randomAccessDecryptionStream(readingFrom:encryptionContext:allocationLimit:flags:threadCount:)
Creates a decryption random access input stream.
Declaration
static func randomAccessDecryptionStream(readingFrom encryptedStream: ArchiveByteStream, encryptionContext context: ArchiveEncryptionContext, allocationLimit: Int = Int.max, flags: ArchiveFlags = [], threadCount: Int = 0) -> ArchiveByteStream?Parameters
- encryptedStream:
An input stream that provides encrypted and compressed data.
- context:
Encryption context that provides options and credentials.
- allocationLimit:
The requested memory allocation size in bytes. Set to
0for lowest memory footprint or Max for best performance. - flags:
Flags that control the behavior of the operation.
- threadCount:
The number of worker threads that the operation uses, set to
0for default.
Return Value
A new archive byte stream.