GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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

◆ my_fread()

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

Definition at line 267 of file cube_io.c.

◆ new_dspf()

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().

◆ read_cube()

int read_cube ( Cube_data Cube,
file_info headfax 
)

Definition at line 134 of file cube_io.c.

◆ reset_reads()

int reset_reads ( file_info headfax)

Definition at line 285 of file cube_io.c.

◆ write_cube()

int write_cube ( Cube_data Cube,
int  cur_x,
file_info headfax 
)

Definition at line 25 of file cube_io.c.

References Cube_data::n_thresh.

◆ write_cube_buffer()

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

Definition at line 93 of file cube_io.c.