GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-bea8435a9e
|
Get segment routines. More...
#include <string.h>
#include "local_proto.h"
Go to the source code of this file.
Functions | |
int | Segment_get (SEGMENT *SEG, void *buf, off_t row, off_t col) |
Get value from segment file. More... | |
Get segment routines.
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 segment/get.c.
int Segment_get | ( | SEGMENT * | SEG, |
void * | buf, | ||
off_t | row, | ||
off_t | col | ||
) |
Get value from segment file.
Provides random read access to the segmented data. It gets len bytes of data into buf from the segment file seg for the corresponding row and col in the original data matrix.
[in] | SEG | segment |
[in,out] | buf | value return buffer |
[in] | row | |
[in] | col |
Definition at line 37 of file segment/get.c.
References SEGMENT::address, SEGMENT::scb::buf, SEGMENT::cache, SEGMENT::len, SEGMENT::ncols, SEGMENT::scb, and seg_pagein().