public Memory(byte[] raw, long vadsize) { RawMemory = raw; MemoryOwnership = new VadTable(raw.Length, vadsize); Stream = new MemoryStream(RawMemory); Size = raw.Length; }
public Memory(long size, long vadsize) { RawMemory = new byte[size]; MemoryOwnership = new VadTable(size, vadsize); Stream = (Stream) new CircularStream(new MemoryStream(RawMemory)); Size = size; }