GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
segment/debug.c File Reference
#include <stdio.h>
#include <string.h>
#include <grass/segment.h>
Include dependency graph for segment/debug.c:

Go to the source code of this file.

Functions

int segment_get (SEGMENT *SEG, void *buf, int row, int col)
 Get value from segment file. More...
 
int segment_put (SEGMENT *SEG, const void *buf, int row, int col)
 

Function Documentation

int segment_get ( SEGMENT *  SEG,
void *  buf,
int  row,
int  col 
)

Get value from segment file.

Provides random read access to the segmented data. It gets len bytes of data into value from the segment file seg for the corresponding row and col in the original data matrix.

Parameters
[in]seg
[in,out]buf
[in]row
[in]col
Returns
1 on success
-1 if unable to seek or read 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.

Parameters
[in]segsegment
[in,out]bufvalue return buffer
[in]row
[in]col
Returns
1 of successful
-1 if unable to seek or read segment file

Definition at line 48 of file segment/debug.c.

References n, segment_address(), and segment_pagein().

Referenced by main().

int segment_put ( SEGMENT *  SEG,
const void *  buf,
int  row,
int  col 
)

Definition at line 86 of file segment/debug.c.

References n, segment_address(), and segment_pagein().