public unsafe void Write(IntPtr buffer, int offset, int count) { Utilities.CopyMemory((IntPtr)((void *)(this._buffer + this._position)), new IntPtr((void *)((IntPtr)(void *)buffer + offset)), count); this._position += (long)count; }
public unsafe void Set(int positionInBytes, IntPtr source, long count) { Utilities.CopyMemory((IntPtr)((void *)(this._buffer + positionInBytes)), source, (int)count); }