GPAK  1.0.0
A general-purpose archive library

◆ gpak_fread()

GPAK_API size_t gpak_fread ( void *  _buffer,
size_t  _elemSize,
size_t  _elemCount,
gpak_file_t _file 
)
Brief Description:\n Reads data from a G-PAK file.

This function reads _elemCount elements of size _elemSize from the specified G-PAK file into the provided _buffer.

Parameters
_bufferA pointer to the buffer where the data will be stored.
_elemSizeThe size of each element to read.
_elemCountThe number of elements to read.
_fileA pointer to the gpak_file_t.
Returns
The number of elements successfully read.

Definition at line 450 of file gpak.c.

451 {
452  return fread(_buffer, _elemSize, _elemCount, _file->stream_);
453 }
FILE * stream_
Definition: gpak_data.h:285

References gpak_file::stream_.