include/antlr3filestream.h(3)
π include/antlr3filestream.h π
okay bestie, welcome to the <pink>include/antlr3filestream.h</pink> page from the ANTLR3C manual β she's a header file, she's lowkey iconic, and she handles all your file-stream situations. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
include/antlr3filestream.h β the header, the moment, the file-stream queen π
πΈ SYNOPSIS πΈ
#include <antlr3defs.h>
π Functions π
ANTLR3_API void antlr3Fclose (ANTLR3_FDSC fd)β closes an operating system file and frees up any handles and that whole situation, periodt.ANTLR3_API ANTLR3_FDSC antlr3Fopen (pANTLR3_UINT8 filename, const char *mode)β opens an operating system file and hands you back the descriptor. no cap, it literally just uses the commonopen()and friends under the hood.ANTLR3_API ANTLR3_UINT32 antlr3Fread (ANTLR3_FDSC fdsc, ANTLR3_UINT32 count, void *data)ANTLR3_API ANTLR3_UINT32 antlr3Fsize (pANTLR3_UINT8 filename)ANTLR3_API ANTLR3_UINT32 antlr3read8Bit (pANTLR3_INPUT_STREAM input, pANTLR3_UINT8 fileName)
π¦ Function Documentation π¦
π ANTLR3_API void antlr3Fclose (ANTLR3_FDSC fd)
Closes an operating system file and frees up any handles and all the lil resources hanging around. it's giving cleanup era π§Ήβ¨
Referenced by antlr3read8Bit().
π ANTLR3_API ANTLR3_FDSC antlr3Fopen (pANTLR3_UINT8 filename, const char *mode)
Opens an operating system file and returns you the descriptor. we're just vibing with the common open() and related functions here, bestie. later on we might find better ways of doing this on systems like Windows and OpenVMS, for instance β but the whole idea is to read the whole file in one go anyway, so honestly it may be irrelevant. π
Referenced by antlr3read8Bit().
π ANTLR3_API ANTLR3_UINT32 antlr3Fread (ANTLR3_FDSC fdsc, ANTLR3_UINT32 count, void * data)
Referenced by antlr3read8Bit().
π ANTLR3_API ANTLR3_UINT32 antlr3Fsize (pANTLR3_UINT8 filename)
References _stat.
Referenced by antlr3read8Bit().
π ANTLR3_API ANTLR3_UINT32 antlr3read8Bit (pANTLR3_INPUT_STREAM input, pANTLR3_UINT8 fileName)
References ANTLR3_ERR_NOFILE, ANTLR3_ERR_NOMEM, ANTLR3_SUCCESS, ANTLR3_TRUE, antlr3Fclose(), antlr3Fopen(), antlr3Fread(), antlr3Fsize(), ANTLR3_INPUT_STREAM_struct::data, ANTLR3_INPUT_STREAM_struct::isAllocated, and ANTLR3_INPUT_STREAM_struct::sizeBuf.
Referenced by antlr3CreateFileStream().
π Author π
Generated automatically by Doxygen for ANTLR3C from the source code. (not a human author, just doxygen doing her lil thing, and honestly? she ate π )
that's the whole page bestie, every function, every reference, every crumb preserved β no cap. π
Version 3.3.1 Β· Tue Jul 29 2025 00:00 Β· from include/antlr3filestream.h(3) β mwah, thanks for reading, ily, go read a file or something π«Άβ¨π
π¦ where this page comes from
- fedora 43: antlr3-C-devel 1:3.4-3.5.3.14.fc43 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms