SMDFSetUINT64

Copies eight or less bytes from a buffer to a UINT64 variable.

Syntax

  #include <smsutapi.h> 
   
  CCODE SMDFSetUINT64 ( 
     UINT64  *data, 
     void    *buffer, 
     UINT16   dataSize);
  

Parameters

data

(OUT) Points to the data copied from buffer.

buffer

(IN) Points to the data to copy.

dataSize

(IN) Specifies the number of bytes to copy (maximum of 8).

Return Values

The following table lists the return values associated with the function.

0x00000000

Successful

0xFFFBFFFA

NWSMUT_BUFFER_OVERFLOW: dataSize is greater than 8.

Remarks

SMDFSetUINT64 calls memcpy to copy the data.

If buffer is NULL, data is set to 0.

See Also

SMDFGetUINT64