VECTOR_BLF_COMPRESSEDFILE(3)

πŸ“¦ version 2.4.2, in arch rolling

πŸ’– 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 cap
  • CompressedFile (CompressedFile &&)=delete β€” move constructor? deleted too, bestie
  • CompressedFile & operator= (CompressedFile &&)=delete β€” move assignment? yep, deleted
  • std::streamsize gcount () const override β€” grab the number of characters from the last read operation
  • void read (char *s, std::streamsize n) override β€” read a block of data
  • std::streampos tellg () override β€” tell me the read position, bestie
  • void seekg (std::streamoff off, const std::ios_base::seekdir way=std::ios_base::cur) override β€” set the input position
  • void write (const char *s, std::streamsize n) override β€” write a block of data
  • std::streampos tellp () override β€” tell me the write position
  • bool good () const override β€” vibe check the stream state
  • bool eof () const override β€” check whether eofbit is set
  • virtual void open (const char *filename, std::ios_base::openmode openMode) β€” open the file
  • virtual bool is_open () const β€” is the file open?
  • virtual void close () β€” close the file
  • virtual void seekp (std::streampos pos) β€” set the output position

🌈 Public Member Functions inherited from Vector::BLF::AbstractFile 🌈

  • AbstractFile (const AbstractFile &)=default β€” default copy constructor
  • AbstractFile & operator= (const AbstractFile &)=default β€” default copy assignment
  • AbstractFile (AbstractFile &&)=default β€” default move constructor
  • AbstractFile & operator= (AbstractFile &&)=default β€” default move assignment
  • virtual void skipp (std::streamsize s) final β€” skip business, inherited and marked final

πŸ¦‹ 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 name
  • openMode β€” 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 data
  • n β€” 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 β€” Offset
  • way β€” 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 data
  • n β€” 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