我要评分
获取效率
正确性
完整性
易理解

File Operation APIs

This section describes the functions and specification restrictions of 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.