Class ChdReaders
- Namespace
- CHDSharp
- Assembly
- CHDSharpLib.dll
Contains all CHD decompression codec implementations as reader delegates: zlib, LZMA, Huffman, FLAC, Zstd, and their CD-sector variants.
public static class ChdReaders
- Inheritance
-
ChdReaders
- Inherited Members
Methods
Flac(byte[], int, byte[], int, ChdCodecState)
Decompresses a FLAC-compressed hunk from buffIn into buffOut, with
optional endian swapping.
public static ChdError Flac(byte[] buffIn, int buffInLength, byte[] buffOut, int buffOutLength, ChdCodecState codec)
Parameters
buffInbyte[]buffInLengthintbuffOutbyte[]buffOutLengthintcodecChdCodecState
Returns
Huffman(byte[], int, byte[], int, ChdCodecState)
Decompresses a Huffman-compressed hunk from buffIn into buffOut.
public static ChdError Huffman(byte[] buffIn, int buffInLength, byte[] buffOut, int buffOutLength, ChdCodecState codec)
Parameters
buffInbyte[]buffInLengthintbuffOutbyte[]buffOutLengthintcodecChdCodecState
Returns
Lzma(byte[], int, byte[], int, ChdCodecState)
Decompresses an LZMA-compressed hunk from buffIn into buffOut.
public static ChdError Lzma(byte[] buffIn, int buffInLength, byte[] buffOut, int buffOutLength, ChdCodecState codec)
Parameters
buffInbyte[]buffInLengthintbuffOutbyte[]buffOutLengthintcodecChdCodecState
Returns
Zlib(byte[], int, byte[], int, ChdCodecState)
Decompresses a DEFLATE (zlib) compressed hunk from buffIn into buffOut
.
public static ChdError Zlib(byte[] buffIn, int buffInLength, byte[] buffOut, int buffOutLength, ChdCodecState codec)
Parameters
buffInbyte[]buffInLengthintbuffOutbyte[]buffOutLengthintcodecChdCodecState
Returns
Zstd(byte[], int, byte[], int, ChdCodecState)
Decompresses a Zstandard-compressed hunk from buffIn into buffOut.
public static ChdError Zstd(byte[] buffIn, int buffInLength, byte[] buffOut, int buffOutLength, ChdCodecState codec)
Parameters
buffInbyte[]buffInLengthintbuffOutbyte[]buffOutLengthintcodecChdCodecState