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