Пример #1
0
 public Memory(byte[] raw, long vadsize)
 {
     RawMemory       = raw;
     MemoryOwnership = new VadTable(raw.Length, vadsize);
     Stream          = new MemoryStream(RawMemory);
     Size            = raw.Length;
 }
Пример #2
0
 public Memory(long size, long vadsize)
 {
     RawMemory       = new byte[size];
     MemoryOwnership = new VadTable(size, vadsize);
     Stream          = (Stream) new CircularStream(new MemoryStream(RawMemory));
     Size            = size;
 }