Beispiel #1
0
        public override void Write(byte[] buffer, int offset, int count)
        {
            if (IsClosed)
            {
                throw new TarArchive.TarFileStorageException("Stream is closed");
            }

            if (!_isHeaderWrote)
            {
                _tarHeader.SizeInBytes = count;

                _tarWriter.WriteHeader(_tarHeader);

                _isHeaderWrote = true;
            }

            _tarWriter.WriteContent(buffer, offset, count);
            _fileSize += count;
        }