GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
rowio.h
Go to the documentation of this file.
1 #ifndef GRASS_ROWIO_H
2 #define GRASS_ROWIO_H
3 
4 typedef struct
5 {
6  int fd; /* file descriptor for reading */
7  int nrows; /* number of rows to be held in memory */
8  int len; /* buffer length */
9  int cur; /* current row in memory */
10  void *buf; /* current data buf */
11  int (*getrow) (int, void *, int, int); /* routine to do the row reads */
12  int (*putrow) (int, const void *, int, int); /* routine to do the row writes */
13 
14  struct ROWIO_RCB
15  {
16  void *buf; /* data buffer */
17  int age; /* for order of access */
18  int row; /* row number */
19  int dirty;
20  } *rcb;
21 } ROWIO;
22 
23 #include <grass/defs/rowio.h>
24 
25 #endif
void * buf
Definition: rowio.h:16
int cur
Definition: rowio.h:9
int len
Definition: rowio.h:8
void * buf
Definition: rowio.h:10
Definition: rowio.h:4
int fd
Definition: rowio.h:6
int nrows
Definition: rowio.h:7