unsafe void WriteBytes(int offset, byte[] data) { byte* ptr = (byte*)0; Writer_accessor.SafeMemoryMappedViewHandle.AcquirePointer(ref ptr); Marshal.Copy(data, 0, IntPtr.Add(new IntPtr(ptr), offset), data.Length); Writer_accessor.SafeMemoryMappedViewHandle.ReleasePointer(); }