VECTOR_BLF_COMPRESSEDFILE(3)
π NAME π
Vector::BLF::CompressedFile β this is the page from the Library Functions Manual, bestie. It's a compressed input/output file stream class, and the docs say it's thread-safe.
β¨ SYNOPSIS β¨
#include <CompressedFile.h>
Inherits Vector::BLF::AbstractFile.
π Public Member Functions π
CompressedFile (const CompressedFile &)=deleteβ copy constructor? literally deleted, not invited to the group chat πCompressedFile & operator= (const CompressedFile &)=deleteβ copy assignment? also deleted, no capCompressedFile (CompressedFile &&)=deleteβ move constructor? deleted too, bestieCompressedFile & operator= (CompressedFile &&)=deleteβ move assignment? yep, deletedstd::streamsize gcount () const overrideβ grab the number of characters from the last read operationvoid read (char *s, std::streamsize n) overrideβ read a block of datastd::streampos tellg () overrideβ tell me the read position, bestievoid seekg (std::streamoff off, const std::ios_base::seekdir way=std::ios_base::cur) overrideβ set the input positionvoid write (const char *s, std::streamsize n) overrideβ write a block of datastd::streampos tellp () overrideβ tell me the write positionbool good () const overrideβ vibe check the stream statebool eof () const overrideβ check whethereofbitis setvirtual void open (const char *filename, std::ios_base::openmode openMode)β open the filevirtual bool is_open () constβ is the file open?virtual void close ()β close the filevirtual void seekp (std::streampos pos)β set the output position
π Public Member Functions inherited from Vector::BLF::AbstractFile π
AbstractFile (const AbstractFile &)=defaultβ default copy constructorAbstractFile & operator= (const AbstractFile &)=defaultβ default copy assignmentAbstractFile (AbstractFile &&)=defaultβ default move constructorAbstractFile & operator= (AbstractFile &&)=defaultβ default move assignmentvirtual void skipp (std::streamsize s) finalβ skip business, inherited and markedfinal
π¦ DETAILED DESCRIPTION π¦
CompressedFile (Input/output file stream)
This class is thread-safe. Periodt. π
π MEMBER FUNCTION DOCUMENTATION π
π void Vector::BLF::CompressedFile::close () [virtual]
Close file. That's the whole assignment. Shut it down.
π¦ bool Vector::BLF::CompressedFile::eof () const [override], [virtual]
Check whether eofbit is set.
Returns: true if eofbit is set.
Implements: Vector::BLF::AbstractFile.
β¨ std::streamsize Vector::BLF::CompressedFile::gcount () const [override], [virtual]
Get characters returned by last read operation.
Returns: Number of characters.
Implements: Vector::BLF::AbstractFile.
πΈ bool Vector::BLF::CompressedFile::good () const [override], [virtual]
Check whether state of stream is good. Literally the stream's vibe check.
Returns: true if no error flags are set.
Implements: Vector::BLF::AbstractFile.
π bool Vector::BLF::CompressedFile::is_open () const [virtual]
is file open?
Returns: true if file is open.
π«Ά void Vector::BLF::CompressedFile::open (const char * filename, std::ios_base::openmode openMode) [virtual]
open file.
Parameters:
filenameβ file nameopenModeβ open in read or write mode
π₯ void Vector::BLF::CompressedFile::read (char * s, std::streamsize n) [override], [virtual]
Read block of data.
This operation blocks until the data is available.
Parameters:
sβ Pointer to datanβ Requested size of data
Implements: Vector::BLF::AbstractFile.
π void Vector::BLF::CompressedFile::seekg (std::streamoff off, const std::ios_base::seekdir way = std::ios_base::cur) [override], [virtual]
Set position in input sequence.
Parameters:
offβ Offsetwayβ Direction
Implements: Vector::BLF::AbstractFile.
π void Vector::BLF::CompressedFile::seekp (std::streampos pos) [virtual]
Set position in output sequence.
Parameters:
posβ Position
β std::streampos Vector::BLF::CompressedFile::tellg () [override], [virtual]
Get position in input sequence.
Returns: Read position.
Implements: Vector::BLF::AbstractFile.
π std::streampos Vector::BLF::CompressedFile::tellp () [override], [virtual]
Get position in output sequence.
Returns: Write position.
Implements: Vector::BLF::AbstractFile.
π§ void Vector::BLF::CompressedFile::write (const char * s, std::streamsize n) [override], [virtual]
Write block of data.
Parameters:
sβ Pointer to datanβ Size of data
Implements: Vector::BLF::AbstractFile.
π AUTHOR π
Generated automatically by Doxygen for Vector BLF from the source code.
π Source/version: Vector BLF. Date: the footer didn't print one on this page, bestie. Stay compressed, stay iconic. π
β¨
π¦ where this page comes from
- arch rolling: vector-blf 2.4.2-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms