mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-07-11 11:37:18 +00:00
34 lines
723 B
C#
34 lines
723 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;
|
|
}
|
|
}
|
|
} |