31 private readonly Action<long, long, uint, Stream, ZipArchiveEntry, EventHandler>
_saveCrcAndSizes;
62 public CheckSumAndSizeWriteStream(
Stream baseStream,
Stream baseBaseStream,
bool leaveOpenOnClose,
ZipArchiveEntry entry, EventHandler onClose, Action<long, long, uint, Stream, ZipArchiveEntry, EventHandler> saveCrcAndSizes)
180 protected override void Dispose(
bool disposing)
195 base.Dispose(disposing);
override void Write(ReadOnlySpan< byte > source)
override void Write(byte[] buffer, int offset, int count)
readonly Action< long, long, uint, Stream, ZipArchiveEntry, EventHandler > _saveCrcAndSizes
CheckSumAndSizeWriteStream(Stream baseStream, Stream baseBaseStream, bool leaveOpenOnClose, ZipArchiveEntry entry, EventHandler onClose, Action< long, long, uint, Stream, ZipArchiveEntry, EventHandler > saveCrcAndSizes)
override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
readonly Stream _baseBaseStream
override void WriteByte(byte value)
readonly EventHandler _onClose
override Task FlushAsync(CancellationToken cancellationToken)
readonly ZipArchiveEntry _zipArchiveEntry
override void SetLength(long value)
readonly bool _leaveOpenOnClose
override long Seek(long offset, SeekOrigin origin)
override int Read(byte[] buffer, int offset, int count)
override void Dispose(bool disposing)
override ValueTask WriteAsync(ReadOnlyMemory< byte > buffer, CancellationToken cancellationToken=default(CancellationToken))
readonly Stream _baseStream
static unsafe uint UpdateCrc32(uint crc32, byte[] buffer, int offset, int length)
static void ValidateBufferArguments(byte[] buffer, int offset, int count)
Task WriteAsync(byte[] buffer, int offset, int count)
void Write(byte[] buffer, int offset, int count)
static string SeekingNotSupported
static string SetLengthRequiresSeekingAndWriting
static string ReadingNotSupported
static string HiddenStreamName
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)