Lexical Analyzer v0.1.0
 
Loading...
Searching...
No Matches
fchnk_t Struct Reference

A structure that represents a chunk of data from a file. More...

#include <lexer_io.h>

Public Attributes

char * buff
 A pointer to a buffer that holds the content of the file chunk.
 
size_t chksz
 The size of the data stored in the buff buffer.
 

Detailed Description

A structure that represents a chunk of data from a file.

This structure is used for managing chunks of data read from a file. It contains a buffer to store the data and a size field to store the size of the data in the buffer.

Member Data Documentation

◆ buff

char* fchnk_t::buff

A pointer to a buffer that holds the content of the file chunk.

This buffer stores the actual data read from the file. The size of this buffer is specified by the chksz field. The buffer must be allocated dynamically (e.g., using malloc), and should be freed when no longer needed.

◆ chksz

size_t fchnk_t::chksz

The size of the data stored in the buff buffer.

This field stores the length of the data currently held in the buff array. It represents the number of characters or bytes stored in the buffer. This field is useful for knowing how much data has been read into the buffer from a file or how much data remains to be processed.


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