public unsafe void MemWrite(ulong address, Span <byte> bytes) { fixed(byte *pBytes = bytes) { var err = UcNative.UcMemWrite(Handle, address, pBytes, (ulong)bytes.Length); if (err != UcErr.UC_ERR_OK) { throw new UcException(err); } } }