|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
RowIO library - Get a row. More...

Go to the source code of this file.
Functions | |
| void * | Rowio_get (ROWIO *R, int row) |
| Read a row. | |
| void | Rowio_flush (ROWIO *R) |
| Flush data. | |
RowIO library - Get a row.
(C) 2001-2009 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file rowio/get.c.
Flush data.
| R | pointer to ROWIO structure |
Definition at line 88 of file rowio/get.c.
References ROWIO::nrows.
Read a row.
Rowio_get() returns a buffer which holds the data for row from the file associated with ROWIO structure R. If the row requested is not in memory, the getrow() routine specified in Rowio_setup() is called to read row into memory and a pointer to the memory buffer containing the row is returned. If the data currently in the buffer had been changed by Rowio_put(), the putrow() routine specified in Rowio_setup() is called first to write the changed row to disk. If row is already in memory, no disk read is done. The pointer to the data is simply returned.
| R | pointer to ROWIO structure |
| row | row number |
Definition at line 40 of file rowio/get.c.
References UntypedStream::buf, ROWIO::buf, ROWIO::cur, ROWIO::fd, ROWIO::getrow, ROWIO::len, ROWIO::nrows, NULL, and ROWIO::rcb.