mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-15 13:35:25 +00:00
25 lines
633 B
C#
25 lines
633 B
C#
namespace SharpCompress.Compressor.PPMd.H
|
|
{
|
|
internal abstract class Pointer
|
|
{
|
|
/// <summary> Initialize the object with the array (may be null)</summary>
|
|
/// <param name="mem">the byte array
|
|
/// </param>
|
|
internal Pointer(byte[] mem)
|
|
{
|
|
Memory = mem;
|
|
}
|
|
|
|
internal byte[] Memory { get; private set; }
|
|
|
|
internal virtual int Address { get; set; }
|
|
|
|
protected T Initialize<T>(byte[] mem)
|
|
where T : Pointer
|
|
{
|
|
Memory = mem;
|
|
Address = 0;
|
|
return this as T;
|
|
}
|
|
}
|
|
} |