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

◆ alloc

off_t gvfile::alloc

Allocated space.

Definition at line 121 of file dig_structs.h.

Referenced by dig_file_free().

◆ current

char* gvfile::current

Current position set by dig_seek()

Definition at line 109 of file dig_structs.h.

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

◆ end

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

◆ file

◆ loaded

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_fread(), dig_fseek(), dig_ftell(), dig_fwrite(), and dig_rewind().

◆ size

off_t gvfile::size

Size of the file loaded to memory.

Definition at line 117 of file dig_structs.h.

Referenced by dig_fseek().

◆ start

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_fseek(), dig_ftell(), and dig_rewind().


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