GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71785
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gvfile Struct Reference

File definition. More...

#include <dig_structs.h>

Data Fields

FILE * file
 File descriptor. More...
 
char * start
 Pointer to beginning of the file in the memory. More...
 
char * current
 Current position set by dig_seek() More...
 
char * end
 End of file in the memory (pointer to first byte after) More...
 
off_t size
 Size of the file loaded to memory. More...
 
off_t alloc
 Allocated space. More...
 
int loaded
 Is file loaded? More...
 

Detailed Description

File definition.

Definition at line 96 of file dig_structs.h.

Field Documentation

off_t gvfile::alloc

Allocated space.

Definition at line 121 of file dig_structs.h.

Referenced by dig_file_free(), and dig_file_load().

char* gvfile::current

Current position set by dig_seek()

Definition at line 109 of file dig_structs.h.

Referenced by dig_file_load(), dig_fread(), dig_fseek(), dig_ftell(), and dig_rewind().

char* gvfile::end

End of file in the memory (pointer to first byte after)

Definition at line 113 of file dig_structs.h.

Referenced by dig_file_load(), and dig_fread().

int gvfile::loaded

Is file loaded?

  • 0 - not loaded
  • 1 - loaded

Definition at line 128 of file dig_structs.h.

Referenced by dig_fflush(), dig_file_free(), dig_file_load(), dig_fread(), dig_fseek(), dig_ftell(), dig_fwrite(), and dig_rewind().

off_t gvfile::size

Size of the file loaded to memory.

Definition at line 117 of file dig_structs.h.

Referenced by dig_file_load(), and dig_fseek().

char* gvfile::start

Pointer to beginning of the file in the memory.

Definition at line 105 of file dig_structs.h.

Referenced by dig_file_free(), dig_file_load(), dig_fseek(), dig_ftell(), and dig_rewind().


The documentation for this struct was generated from the following file: