SIDF_GetFixedSize

Indicates if a FID has a fixed or variable data size.

Syntax

  #include <sidf.h> 
   
  int SIDF_GetFixedSize ( 
      UINT32   fid);
  

Parameters

fid

(IN) Specifies the FID value to be identified.

Return Values

If SIDF_GetFixedSize is successful, it returns nonzero if the FID is fixed and zero if it is not fixed.

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

0x00000000

Not fixed: fid is not a fixed FID.

nonzero

Fixed size value: size of fixed fid.

Remarks

longFid must be set before you call this macro.

Example

  UINT32 fid;
  
  BUFFERPTR bufferPtr = buffer;
  
  UINT8 longFid;
  
  
  
  longFid = IsLong((char *)&fid);
  
  if (SMDFFixedFid(fid))
  
     /* FID is fixed. */
  
     ...
  
  else
  
     /* FID is variable. */
  
     ...