GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
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. More... | |
void | Rowio_flush (ROWIO *R) |
Flush data. More... | |
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.
void Rowio_flush | ( | ROWIO * | R | ) |
Flush data.
R | pointer to ROWIO strcuture |
Definition at line 89 of file rowio/get.c.
References ROWIO::nrows.
void* Rowio_get | ( | ROWIO * | R, |
int | row | ||
) |
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 41 of file rowio/get.c.