GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
Loading...
Searching...
No Matches
gvfile Struct Reference

File definition. More...

#include <dig_structs.h>

Data Fields

FILEfile
 File descriptor.
 
charstart
 Pointer to beginning of the file in the memory.
 
charcurrent
 Current position set by dig_seek()
 
charend
 End of file in the memory (pointer to first byte after)
 
off_t size
 Size of the file loaded to memory.
 
off_t alloc
 Allocated space.
 
int loaded
 Is file loaded?
 

Detailed Description

File definition.

Definition at line 92 of file dig_structs.h.

Field Documentation

◆ alloc

off_t gvfile::alloc

Allocated space.

Definition at line 116 of file dig_structs.h.

◆ current

char* gvfile::current

Current position set by dig_seek()

Definition at line 104 of file dig_structs.h.

◆ end

char* gvfile::end

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

Definition at line 108 of file dig_structs.h.

◆ file

FILE* gvfile::file

File descriptor.

Definition at line 96 of file dig_structs.h.

Referenced by Vect_cidx_open(), Vect_cidx_save(), Vect_open_fidx(), Vect_open_topo(), Vect_save_fidx(), and Vect_save_topo().

◆ loaded

int gvfile::loaded

Is file loaded?

  • 0 - not loaded
  • 1 - loaded

Definition at line 123 of file dig_structs.h.

◆ size

off_t gvfile::size

Size of the file loaded to memory.

Definition at line 112 of file dig_structs.h.

◆ start

char* gvfile::start

Pointer to beginning of the file in the memory.

Definition at line 100 of file dig_structs.h.


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