Set buffering modes and size
Source position: amigados.pas line 2260
function SetVBuf( |
File_: Pointer; |
Buff: PChar; |
Type_: LongInt; |
Size: LongInt |
):LongBool; |
File_ |
|
Filehandle |
Buff |
|
Buffer pointer for buffered I/O or nil. Must be 4-aligned! |
Type_ |
|
buffering mode (BUF_*) |
Size |
|
Size of buffer for buffered I/O (sizes less than 208 bytes will be rounded up to 208), or -1. |
Changes the buffering modes and buffer size for a filehandle. With buff = nil, the current buffer will be deallocated and a new one of (approximately) size will be allocated. If buffer is non-nil, it will be used for buffering and must be at least max(size,208) bytes long, and must be longword aligned. If size is -1, then only the buffering mode will be changed.
Note that a user-supplied buffer will not be freed if it is later replaced by another SetVBuf() call, nor will it be freed if the filehandle is closed.
Has no effect on the buffersize of filehandles that were not created by AllocDosObject().
|
Write a character to the specified output |
|
|
Read a character from the specified input (buffered) |
|
|
Makes a char available for reading again. (buffered) |
|
|
Flushes buffers for a buffered filehandle |
|
|
Reads a number of blocks from an input (buffered) |
|
|
Writes a number of blocks to an output (buffered) |
|
|
Reads a line from the specified input (buffered) |
|
|
Writes a string the the specified output |
|
|
Creates a dos object |