Rate This Document
Findability
Accuracy
Completeness
Readability

File Operation APIs

File operation APIs comply with GM/T 0018-2012. For details about the API parameters and return values, see GM/T 0018-2012.

int SDF_CreateFile(void *hSessionHandle, unsigned char *pucFileName, unsigned int uiNameLen, unsigned int uiFileSize);
int SDF_ReadFile(void *hSessionHandle, unsigned char *pucFileName, unsigned int uiNameLen, unsigned int uiOffset, unsigned int *puiFileLength, unsigned char *pucBuffer);
int SDF_WriteFile(void *hSessionHandle, unsigned char *pucFileName, unsigned int uiNameLen, unsigned int uiOffset, unsigned int uiFileLength, unsigned char *pucBuffer);
int SDF_DeleteFile(void *hSessionHandle, unsigned char *pucFileName, unsigned int uiNameLen);

Specification Restrictions

  • The length of a file name cannot exceed 120 bytes.
  • The maximum size of data stored in a file is 4 MB.