Description

Allows you to write data to the dynamic memory area of ​​the key.

Dynamic memory must be previously created for the product in the Guardant Station system.

Syntax

public unsafe Status MemoryWrite(UInt32 memoryId, 
								 UInt32 password, 
								 GrdMemoryWriteMode mode, 
								 UInt32 offset, 
								 byte[] data)

Parameters

memoryId
Unique identifier of the memory area being read. Assigned in Guardant Station
password

Password for reading data. If not used, the value should be 0

mode

Write mode:

  • GRD_WRITE_MODE_MOV — replaces the data in the key with new ones
  • GRD_WRITE_MODE_XOR — adds the new data bitwise mod 2 to the data in the key
offset
Address (offset) of the first byte to be written
data
Buffer with the data to be written

Return values

GRD_OK

GRD_INVALID_HANDLE

  • No labels