SMDFSizeOfUINT64Data

Determines the number of bytes used by a UINT64 value.

Syntax

  #include <smsutapi.h> 
   
  UINT32 SMDFSizeOfUINT64Data ( 
     UINT64   data);
  

Parameters

data

(IN) Specifies the data to count.

Return Values

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

0x00000000

The value of data is zero.

0x1

data has a value that uses only the lowest byte.

0z2

data has a value that uses only the lower 2 bytes.

0z4

data has a value that uses only the lower 4 bytes.

0z8

data has a value that uses all 8 bytes.

Remarks

The value returned by SMDFSizeOfUINT64Data is rounded to the next highest power of two. For example, if data uses five bytes, SMDFSizeOfUINT64Data returns 8.