示例#1
0
 public MemoryMapResponse(MemoryMapOrigin origin, Span <byte> memory, ushort offset, bool writable = false, ushort repeat = 0)
 {
     this.origin   = origin;
     this.memory   = memory;
     this.offset   = offset;
     this.writable = writable;
     this.repeat   = repeat;
 }
示例#2
0
 public MemoryMapResponse(MemoryMapOrigin origin, byte[] memory, ushort offset, bool writable = false, ushort repeat = 0)
     : this(origin, memory.AsSpan(), offset, writable, repeat)
 {
 }