Files
SabreTools.Compression/libmspack/None/State.cs
Matt Nadareski 82223f3ee4 Checkpoint (nw)
2023-09-20 14:26:09 -04:00

34 lines
939 B
C#

namespace SabreTools.Compression.libmspack.None
{
/// <summary>
/// The "not compressed" method decompressor
/// </summary>
public unsafe class State
{
public mspack_system InternalSystem { get; private set; }
public mspack_file Input { get; private set; }
public mspack_file Output { get; private set; }
public FixedArray<byte> Buffer { get; private set; }
public int BufferSize { get; private set; }
public State(mspack_system sys, mspack_file infh, mspack_file outfh, int bufsize)
{
this.InternalSystem = sys;
this.Input = infh;
this.Output = outfh;
this.Buffer = new FixedArray<byte>(bufsize);
this.BufferSize = bufsize;
}
~State()
{
mspack_system sys = this.InternalSystem;
sys.free(this.Buffer);
//sys.free(this);
}
}
}