Mono.Debugger.Languages.TargetLocation.WriteBuffer C# (CSharp) Method

WriteBuffer() private method

private WriteBuffer ( TargetMemoryAccess target, byte data ) : void
target TargetMemoryAccess
data byte
return void
        internal virtual void WriteBuffer(TargetMemoryAccess target, byte[] data)
        {
            target.WriteBuffer (GetAddress (target), data);
        }

Usage Example

Example #1
0
        internal virtual void SetObject(TargetMemoryAccess target, TargetLocation location,
                                        TargetObject obj)
        {
            if (obj == null)
            {
                if (IsByRef)
                {
                    location.WriteAddress(target, TargetAddress.Null);
                    return;
                }

                throw new InvalidOperationException();
            }

            if (IsByRef)
            {
                if (obj.Type.IsByRef)
                {
                    location.WriteAddress(target, obj.Location.GetAddress(target));
                    return;
                }

                throw new InvalidOperationException();
            }

            if (!HasFixedSize || !obj.Type.HasFixedSize)
            {
                throw new InvalidOperationException();
            }
            if (Size != obj.Type.Size)
            {
                throw new InvalidOperationException();
            }

            byte[] contents = obj.Location.ReadBuffer(target, obj.Type.Size);
            location.WriteBuffer(target, contents);
        }
All Usage Examples Of Mono.Debugger.Languages.TargetLocation::WriteBuffer