GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71924
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cube_io.c File Reference
#include <stdlib.h>
#include <grass/gis.h>
#include "viz.h"
Include dependency graph for cube_io.c:

Go to the source code of this file.

Functions

int write_cube (Cube_data *Cube, int cur_x, file_info *headfax)
 
int write_cube_buffer (unsigned char *Buffer, int size, int cur_x, file_info *headfax)
 
int read_cube (Cube_data *Cube, file_info *headfax)
 
int my_fread (char *buf, int size, int cnt, FILE *fp)
 
int reset_reads (file_info *headfax)
 
int new_dspf (file_info *hfax)
 

Function Documentation

int my_fread ( char *  buf,
int  size,
int  cnt,
FILE *  fp 
)

Definition at line 267 of file cube_io.c.

References struct_copy().

Referenced by read_cube().

int new_dspf ( file_info hfax)

Definition at line 295 of file cube_io.c.

References file_info::Dataoff, file_info::dspfinfp, and G_fseek().

int reset_reads ( file_info headfax)

Definition at line 285 of file cube_io.c.

References file_info::Dataoff, file_info::dspfinfp, and G_fseek().

int write_cube_buffer ( unsigned char *  Buffer,
int  size,
int  cur_x,
file_info headfax 
)

Definition at line 93 of file cube_io.c.

References file_info::dspfoutfp, and file_info::xdim.

Referenced by write_cube().