Files
SabreTools.Compression/libmspack/OAB/Compressor.cs
Matt Nadareski d014d57750 Checkpoint (nw)
2023-09-20 00:40:17 -04:00

70 lines
2.5 KiB
C#

using System;
namespace SabreTools.Compression.libmspack.OAB
{
/// <summary>
/// A compressor for the Offline Address Book (OAB) format.
///
/// All fields are READ ONLY.
/// </summary>
public class Compressor : BaseCompressor
{
/// <summary>
/// Creates a new OAB compressor
/// </summary>
public Compressor()
{
throw new NotImplementedException();
}
/// <summary>
/// Destroys an existing OAB compressor
/// </summary>
~Compressor()
{
throw new NotImplementedException();
}
/// <summary>
/// Compress a full OAB file.
///
/// The input file will be read and the compressed contents written to the
/// output file.
/// </summary>
/// <param name="input">
/// The filename of the input file. This is passed
/// directly to mspack_system::open().
/// </param>
/// <param name="output">
/// The filename of the output file. This is passed
/// directly to mspack_system::open().
/// </param>
/// <returns>An error code, or MSPACK_ERR_OK if successful</returns>
public MSPACK_ERR compress(in string input, in string output) => throw new NotImplementedException();
/// <summary>
/// Generate a compressed incremental OAB patch file.
///
/// The two uncompressed files "input" and "base" will be read, and an
/// incremental patch to generate "input" from "base" will be written to
/// the output file.
/// </summary>
/// <param name="input">
/// The filename of the input file containing the new
/// version of its contents. This is passed directly
/// to mspack_system::open().
/// </param>
/// <param name="base">
/// The filename of the original base file containing
/// the old version of its contents, against which the
/// incremental patch shall generated. This is passed
/// directly to mspack_system::open().
/// </param>
/// <param name="output">
/// The filename of the output file. This is passed
/// directly to mspack_system::open().
/// </param>
/// <returns>An error code, or MSPACK_ERR_OK if successful</returns>
public MSPACK_ERR compress_incremental(in string input, in string @base, in string output) => throw new NotImplementedException();
}
}