public override unsafe void Write(byte[] buffer, int offset, int count)
        {
            bool flag = !this.BeginAccess();

            fixed(byte *numPtr = &buffer[0])
            ProcessStream.WriteProcessMemory(this.m_Process, this.m_Position, (void *)(numPtr + offset), count, 0);

            this.m_Position += count;
            if (!flag)
            {
                return;
            }
            this.EndAccess();
        }
        public override void Write(byte[] buffer, int offset, int count)
        {
            unsafe
            {
                bool flag = !this.BeginAccess();
                fixed(byte *numPointer = &buffer[0])
                {
                    ProcessStream.WriteProcessMemory(this.m_Process, this.m_Position, numPointer + offset, count, 0);
                }

                ProcessStream mPosition = this;
                mPosition.m_Position = mPosition.m_Position + count;
                if (flag)
                {
                    this.EndAccess();
                }
            }
        }