tfFSGetFileBlockSize

Jump to: navigation, search

Table of Contents >> Application Reference >> File System Interface


#include <trsocket.h>


int tfFSGetFileBlockSize (void);


Function Description

This interface function expects the user to provide the most efficient file block size, normally it would be the cluster size of the underlying file system. This is used to optimize the file read and write performance. If it returns zero, the default size TM_FS_FILE_BLOCK_SIZE (512) will be used by the stack.


Returns

  • >0
    The file block size of the file system.
  • 0
    Tell the Treck stack to use the default block size.


Table of Contents >> Application Reference >> File System Interface