Table of Contents

Class Commands.Monitor_StorageOperation

Namespace
nanoFramework.Tools.Debugger.WireProtocol
Assembly
nanoFramework.Tools.DebugLibrary.Net.dll

Perform storage operation on the target device.

public class Commands.Monitor_StorageOperation : Commands.OverheadBase
Inheritance
Commands.Monitor_StorageOperation
Inherited Members
Extension Methods

Constructors

Monitor_StorageOperation()

public Monitor_StorageOperation()

Fields

Data

Data buffer to be sent to the device.

public byte[] Data

Field Value

byte[]

DataLength

Length of the data to be used in the operation.

public uint DataLength

Field Value

uint

FileName

File name for the the storage operation.

[IgnoreDataMember]
public string FileName

Field Value

string

NameLength

Length of the name of the file to be used in the operation.

public uint NameLength

Field Value

uint

Offset

Offset in the file data of the chunck in this operation.

public uint Offset

Field Value

uint

Remarks

This is to be used by the target device to know where to start writing the chunk data.

Operation

Storage operation to be performed.

public uint Operation

Field Value

uint

Methods

PrepareForSend(byte[], int, int)

Prepare for sending a storage operation to the target device.

public override bool PrepareForSend(byte[] buffer, int length, int offset = 0)

Parameters

buffer byte[]

Data buffer to be sent to the device.

length int

Length of the data to be copied from the buffer.

offset int

Offset in the buffer to start copying data from.

Returns

bool

SetupOperation(StorageOperation, string)

Prepare for sending a storage operation to the target device.

public void SetupOperation(Commands.Monitor_StorageOperation.StorageOperation operation, string name)

Parameters

operation Commands.Monitor_StorageOperation.StorageOperation

Commands.Monitor_StorageOperation.StorageOperation to be performed.

name string

Name of the file to be used in the operation.