GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-57a646b4a4
defs/segment.h
Go to the documentation of this file.
1 #ifndef GRASS_SEGMENTDEFS_H
2 #define GRASS_SEGMENTDEFS_H
3 
4 int Segment_open(SEGMENT *, char *, off_t, off_t, int, int, int, int);
7 int Segment_format(int, off_t, off_t, int, int, int);
8 int Segment_format_nofill(int, off_t, off_t, int, int, int);
9 int Segment_get(SEGMENT *, void *, off_t, off_t);
10 int Segment_get_row(const SEGMENT *, void *, off_t);
11 int Segment_init(SEGMENT *, int, int);
12 int Segment_put(SEGMENT *, const void *, off_t, off_t);
13 int Segment_put_row(const SEGMENT *, const void *, off_t);
15 
16 #endif /* GRASS_SEGMENTDEFS_H */
int Segment_get_row(const SEGMENT *, void *, off_t)
int Segment_open(SEGMENT *, char *, off_t, off_t, int, int, int, int)
Initialize segment structure and open segment file.
Definition: segment/open.c:45
int Segment_get(SEGMENT *, void *, off_t, off_t)
Get value from segment file.
Definition: segment/get.c:37
int Segment_put_row(const SEGMENT *, const void *, off_t)
Write row to segment file.
int Segment_release(SEGMENT *)
Free memory allocated to segment.
int Segment_format_nofill(int, off_t, off_t, int, int, int)
Format a segment file.
int Segment_format(int, off_t, off_t, int, int, int)
Format a segment file.
int Segment_flush(SEGMENT *)
Flush pending updates to disk.
Definition: flush.c:30
int Segment_init(SEGMENT *, int, int)
Initialize segment structure.
Definition: segment/init.c:56
int Segment_close(SEGMENT *)
Free memory allocated to segment, delete temp file.
Definition: segment/close.c:33
int Segment_put(SEGMENT *, const void *, off_t, off_t)
Definition: segment/put.c:43