Add everything from szdd.h

This commit is contained in:
Matt Nadareski
2023-09-19 00:38:38 -04:00
parent 80bd06f9e3
commit 327a97e523
4 changed files with 29 additions and 0 deletions

View File

@@ -9,6 +9,10 @@ namespace SabreTools.Compression.libmspack
/// <see cref="mspack_destroy_szdd_compressor()"/>
public abstract class msszdd_compressor
{
public mspack_system system { get; set; }
public MSPACK_ERR error { get; set; }
/// <summary>
/// Reads an input file and creates a compressed output file in the
/// SZDD compressed file format. The SZDD compression format is quick

View File

@@ -9,6 +9,10 @@ namespace SabreTools.Compression.libmspack
/// <see cref="mspack_destroy_szdd_decompressor()"/>
public abstract class msszdd_decompressor
{
public mspack_system system { get; set; }
public MSPACK_ERR error { get; set; }
/// <summary>
/// Opens a SZDD file and reads the header.
///

View File

@@ -7,6 +7,8 @@ namespace SabreTools.Compression.libmspack
/// </summary>
public class msszddd_header
{
public mspack_file fh { get; set; }
/// <summary>
/// The file format
/// </summary>

19
libmspack/szdd.cs Normal file
View File

@@ -0,0 +1,19 @@
/* This file is part of libmspack.
* (C) 2003-2004 Stuart Caie.
*
* libmspack is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License (LGPL) version 2.1
*
* For further details, see the file COPYING.LIB distributed with libmspack
*/
namespace SabreTools.Compression.libmspack
{
public static class SZDD
{
/// <summary>
/// Input buffer size during decompression - not worth parameterising IMHO
/// </summary>
public const int SZDD_INPUT_SIZE = 2048;
}
}