Documentation

xPCFSScSetWriteSize

Specify that memory buffer collect data in multiples of write size

Prototype

void xPCFSScSetWriteSize(int port, int scNum, unsigned int 
writeSize);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

writeSize

Enter the block size, in bytes, of the data chunks.

Description

The xPCFSScSetWriteSize function specifies that a memory buffer collect data in multiples of writeSize. By default, this parameter is 512 bytes, which is the typical disk sector size. Using a block size that is the same as the disk sector size provides better performance. writeSize must be a multiple of 512.

Introduced before R2006a

Was this topic helpful?