cookie CmListRemoteUpdateBuffer

Description

This function operates like CmListRemoteUpdate() but uses a pre-allocated memory buffer instead of a file pointer.

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

Syntax

int CMAPIENTRY CmListRemoteUpdateBuffer(CMUINT flCtrl, void* pvMemBuffer, CMUINT cbMemBuffer, CMSERIAL *pcmSerials, CMUINT cbSerials);

Parameter

flCtrl reserved for future purposes.

pvMemBuffer pointer to memory to hold the data.

cbMemBuffer holds the size of pvMemBuffer.

pcmSerials points to a serial structure.

cbSerials holds the size of pcmSerials.

Return

Returns the number of found serial numbers in the Update File *.WibuCmRaU. If this number is equal or smaller than cbSerials, all found serial numbers are copied to the array at pcmSerials. If the number of found serial numbers is larger than cbSerials, cbSerials elements are copied to the array at pcmSerials.

Syntax

public bool CmListRemoteUpdateBuffer(string Buffer, out CmSerial[] Serials)

 

Syntax

Buffer pointer to memory to hold the data.

Serials points to a serial hmtoggle_plus1 CmSerial class

Return

Returns true, if the update was successful, false if otherwise.

 

Syntax

import cmapi
 
cmapi.CodeMeter().CmListRemoteUpdateBuffer(pvMemBuffer: bytes)
 -> List[cmapi.CMSERIAL]

Parameter

pvMemBuffer pointer to memory to hold the data.

Return

Returns the list of found serial numbers in the Update File *.WibuCmRaU. The list is made of hmtoggle_plus1 cmapi.CMSERIAL classes.