...
Code Block | ||
---|---|---|
| ||
int fs_setvbuf (FS_FILE *p_file, |
...
char *p_buf, |
...
int mode, fs_size_t size); |
...
HTML Table | summary |
---|---|
class | Plain_Table |
Table Row (tr) | |
Table Cell (td) | |
Anchor | 1110176 | 1110176 |
File |
---|
...
Called from |
---|
...
...
Code enabled by |
---|
...
|
...
...
Application |
...
|
Anchor
Arguments
Anchor
p_file
Pointer to a file.
Anchor
p_buf
Pointer to buffer.
...
mode
anchor
Buffer mode:
...
...
class | WebWorks_Indent_1 |
---|
...
FS__IONBR
...
class | WebWorks_Indent_2 |
---|
...
...
Unbuffered.
...
class | WebWorks_Indent_1 |
---|
...
FS__IOFBF
...
class | WebWorks_Indent_2 |
---|
...
Fully buffered.
...
class | WebWorks_Indent_1 |
---|
...
size
...
class | WebWorks_Indent_2 |
---|
...
...
Size of buffer, in octets.
...
Returned Value
Anchor
Notes/Warnings
...
...
fs_setvbuf()
must be used after a stream is opened but before any other operation is performed on stream.
...
size
must be more than or equal to the size of one sector; it will be rounded DOWN to the nearest size of a multiple of full sectors.
...
...
- Once a buffer is assigned to a file, a new buffer may not be assigned nor may the assigned buffer be removed. To change the buffer, the file should be closed and re-opened.
...
- Upon power loss, any data stored in file buffers will be lost.