/src/gdal/frmts/pcraster/libcsf/_rputrow.c
Line | Count | Source (jump to first uncovered line) |
1 | | #include "csf.h" |
2 | | #include "csfimpl.h" |
3 | | |
4 | | |
5 | | /* write one row to a CSF raster file |
6 | | * RputRow writes one row of cell values to a |
7 | | * file. |
8 | | * returns |
9 | | * number of cells successfully written. Should be equal |
10 | | * to the number of columns if everything is OK. |
11 | | * |
12 | | * example |
13 | | * .so examples/_row.tr |
14 | | */ |
15 | | size_t RputRow( |
16 | | MAP *map, /* map handle */ |
17 | | size_t rowNr, /* Row number of row */ |
18 | | void *buf) /* read-write. Buffer large enough to |
19 | | * hold one row in the in-file cell representation |
20 | | * or the in-app cell representation. |
21 | | * If these types are not equal then the buffer is |
22 | | * converted from the in-app to the in-file |
23 | | * cell representation. |
24 | | */ |
25 | 0 | { |
26 | 0 | return RputSomeCells(map, (map->raster.nrCols)*rowNr, |
27 | 0 | (size_t)map->raster.nrCols, buf) ; |
28 | 0 | } |