public void DisableByteWritten(bool disable) { _disable_byte_written = disable; if (!_disable_byte_written) { ByteWritten?.Invoke(this, new EventArgs()); } }
public void WriteByte(long index, byte value) { if (index < _map.Length) { try { _map.Write((ulong)index, value); ByteWritten?.Invoke(this, new EventArgs()); } catch { } } }
public void WriteBytes(long index, byte[] value) { if (index < _map.Length) { try { long count = Math.Min(_map.Length - index, value.Length); _map.WriteArray((ulong)index, value, 0, (int)count); ByteWritten?.Invoke(this, new EventArgs()); } catch { } } }
public void WriteByte(long index, byte value) { if (index < Length) { try { _map.Write((ulong)index, value); if (!_disable_byte_written) { ByteWritten?.Invoke(this, new EventArgs()); } } catch { } } }