public static byte[] GetCompressedChunk(byte[] buffer, int offset) { int compressedChunkLength = Codec.GetCompressedLength(buffer, offset); return(Utilities.ReadBlock(buffer, offset, compressedChunkLength)); }
/// <summary> /// Computes the length of a compressed data block. /// </summary> /// <param name="buffer">The compressed data block.</param> /// <returns>The length of the compressed block.</returns> public static int GetCompressedLength(byte[] buffer) { return(Codec.GetCompressedLength(buffer, 0)); }