public async Task <int> BuildCompressedChunk(ByteArrayReader reader, BulkDataCompressionTypes compressionFlags) { BulkDataFlags = (uint)compressionFlags; int builderSize = sizeof(uint) + sizeof(int) * 3; if ((compressionFlags & NothingToDo) > 0) { return(builderSize); } reader.Seek(0); UncompressedSize = reader.Remaining; Header = new DomainCompressedChunkHeader(); builderSize += await Header.BuildCompressedChunkHeader(reader, BulkDataFlags); CompressedSize = builderSize - 16; return(builderSize); }
public async Task<int> BuildCompressedChunk(ByteArrayReader reader, BulkDataCompressionTypes compressionFlags) { BulkDataFlags = (uint)compressionFlags; int builderSize = sizeof(uint) + sizeof(int) * 3; if ((compressionFlags & NothingToDo) > 0) return builderSize; reader.Seek(0); UncompressedSize = reader.Remaining; Header = new DomainCompressedChunkHeader(); builderSize += await Header.BuildCompressedChunkHeader(reader, BulkDataFlags); CompressedSize = builderSize - 16; return builderSize; }