コード例 #1
0
        public static byte[] GetCompressedChunk(byte[] buffer, int offset)
        {
            int compressedChunkLength = Codec.GetCompressedLength(buffer, offset);

            return(Utilities.ReadBlock(buffer, offset, compressedChunkLength));
        }
コード例 #2
0
 /// <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));
 }