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

function GrdMemoryWrite(
  handle: GrdHandle;
  memoryId: grd_uint32;
  password: grd_uint32;
  mode: grd_uint32;
  dataSize: grd_uint32;
  offset: grd_uint32;
  const data: Pointer): Integer; stdcall;

Parameters

handle
Session handle
memoryId
Unique identifier of the memory area being read. Assigned in Guardant Station
password [optional]

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
dataSize
The size (in bytes) of the buffer for writing data
offset
Address (offset) of the first byte to be written
data
Pointer to the buffer with the data to be written

Return values

GRD_OK

GRD_INVALID_HANDLE

  • No labels