IronPython.Modules.MemoryHolder.WriteByte C# (CSharp) Method

WriteByte() public method

public WriteByte ( int offset, byte value ) : void
offset int
value byte
return void
        public void WriteByte(int offset, byte value) {
            Marshal.WriteByte(_data, offset, value);
            GC.KeepAlive(this);
        }

Usage Example

Ejemplo n.º 1
0
            private void WriteBytes(MemoryHolder address, int offset, Bytes bytes)
            {
                SimpleType st = (SimpleType)_type;

                Debug.Assert(st._type == SimpleTypeKind.Char && bytes.Count <= _length);
                address.WriteSpan(offset, bytes.AsSpan());
                if (bytes.Count < _length)
                {
                    address.WriteByte(checked (offset + bytes.Count), 0);
                }
            }
All Usage Examples Of IronPython.Modules.MemoryHolder::WriteByte