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
FileName
File name for the the storage operation.
[IgnoreDataMember]
public string FileName
Field Value
NameLength
Length of the name of the file to be used in the operation.
public uint NameLength
Field Value
Offset
Offset in the file data of the chunck in this operation.
public uint Offset
Field Value
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
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
intLength of the data to be copied from the
buffer
.offset
intOffset in the
buffer
to start copying data from.
Returns
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.StorageOperationCommands.Monitor_StorageOperation.StorageOperation to be performed.
name
stringName of the file to be used in the operation.