VECTOR_BLF_UNCOMPRESSEDFILE(3)

πŸ“¦ version 2.4.2, in arch rolling

πŸ’…βœ¨ Vector::BLF::UncompressedFile βœ¨πŸ’…

Okay bestie, this page is from the Library Functions Manual β€” yes, that's the manual name, folded in right near the top like a little name tag 🫢. It's all about Vector::BLF::UncompressedFile, and no cap, it's the input/output memory stream class. Let's get into it.


🌸 NAME 🌸

Vector::BLF::UncompressedFile


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <UncompressedFile.h>

Inherits Vector::BLF::AbstractFile.

πŸ’– Public Member Functions πŸ’–

  • std::streamsize gcount () const override
  • void read (char *s, std::streamsize n) override
  • std::streampos tellg () override
  • void seekg (std::streamoff off, const std::ios_base::seekdir way=std::ios_base::cur) override
  • void write (const char *s, std::streamsize n) override
  • std::streampos tellp () override
  • bool good () const override
  • bool eof () const override
  • virtual void abort ()
  • virtual void write (const std::shared_ptr< LogContainer > &logContainer)
  • virtual void nextLogContainer ()
  • virtual std::streamsize fileSize () const
  • virtual void setFileSize (std::streamsize fileSize)
  • virtual void setBufferSize (std::streamsize bufferSize)
  • virtual void dropOldData ()
  • virtual uint32_t defaultLogContainerSize () const
  • virtual void setDefaultLogContainerSize (uint32_t defaultLogContainerSize)

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

  • AbstractFile (const AbstractFile &)=default
  • AbstractFile & operator= (const AbstractFile &)=default
  • AbstractFile (AbstractFile &&)=default
  • AbstractFile & operator= (AbstractFile &&)=default
  • virtual void skipp (std::streamsize s) final

🌈 Public Attributes 🌈

  • std::condition_variable tellgChanged
  • std::condition_variable tellpChanged

πŸ‘‘ Detailed Description πŸ‘‘

UncompressedFile (Input/output memory stream)

This class is like a virtual file buffer. It only sees the fragments that are contained in m_data and addresses by the underlying uncompressed LogContainers. Read is done at position m_tellg and write position is at m_tellp. Write or seek operations exceeding the end of the file, will automatically create new logContainers. An explicit dropOldData drops logContainers that have already been processed.

This class is thread-safe. Periodt πŸ’…

πŸ”₯ Member Function Documentation πŸ”₯

πŸŽ€ void Vector::BLF::UncompressedFile::abort () [virtual] πŸŽ€

Stop further operations. Return from waiting reads.

πŸ“ uint32_t Vector::BLF::UncompressedFile::defaultLogContainerSize () const [virtual] πŸ“

Get default log container size.

Returns: default log container size

πŸ¦‹ void Vector::BLF::UncompressedFile::dropOldData () [virtual] πŸ¦‹

drop old log container, if tellg/tellp are beyond it

🌸 bool Vector::BLF::UncompressedFile::eof () const [override], [virtual] 🌸

Check whether eofbit is set.

Returns: true if eofbit is set

Implements Vector::BLF::AbstractFile.

⭐ std::streamsize Vector::BLF::UncompressedFile::fileSize () const [virtual] ⭐

Return current file size resp. end-of-file position.

Returns: file size

πŸ’– std::streamsize Vector::BLF::UncompressedFile::gcount () const [override], [virtual] πŸ’–

Get characters returned by last read operation.

Returns: Number of characters

Implements Vector::BLF::AbstractFile.

🫢 bool Vector::BLF::UncompressedFile::good () const [override], [virtual] 🫢

Check whether state of stream is good.

Returns: true if no error flags are set

Implements Vector::BLF::AbstractFile.

🧚 void Vector::BLF::UncompressedFile::nextLogContainer () [virtual] 🧚

Close the current logContainer.

πŸ”₯ void Vector::BLF::UncompressedFile::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::UncompressedFile::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::UncompressedFile::setBufferSize (std::streamsize bufferSize) [virtual] πŸŽ€

Sets the maximum file size. Write operations block, if the size is reached.

Parameters:

  • bufferSize β€” maximum file size

🌈 void Vector::BLF::UncompressedFile::setDefaultLogContainerSize (uint32_t defaultLogContainerSize) [virtual] 🌈

Set default log container size.

Parameters:

  • defaultLogContainerSize β€” default log container size

πŸ“ void Vector::BLF::UncompressedFile::setFileSize (std::streamsize fileSize) [virtual] πŸ“

Set file size resp. end-of-file position.

Parameters:

  • fileSize β€” file size

πŸ’œ std::streampos Vector::BLF::UncompressedFile::tellg () [override], [virtual] πŸ’œ

Get position in input sequence.

Returns: Read position

Implements Vector::BLF::AbstractFile.

✨ std::streampos Vector::BLF::UncompressedFile::tellp () [override], [virtual] ✨

Get position in output sequence.

Returns: Write position

Implements Vector::BLF::AbstractFile.

πŸŒ™ void Vector::BLF::UncompressedFile::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.

πŸ¦„ void Vector::BLF::UncompressedFile::write (const std::shared_ptr< LogContainer > & logContainer) [virtual] πŸ¦„

write LogContainer

Parameters:

  • logContainer β€” log container

πŸŒ™ Member Data Documentation πŸŒ™

πŸ’œ std::condition_variable Vector::BLF::UncompressedFile::tellgChanged

tellg was changed (after read or seekg)

πŸ’œ std::condition_variable Vector::BLF::UncompressedFile::tellpChanged

tellp was changed (after write or seekp)


🌟 Author 🌟

Generated automatically by Doxygen for Vector BLF from the source code.


Okay that's the whole page, bestie! Source/version: Vector BLF. Date: there's no date in the footer on this page, so I'm not gonna invent one 😭. Mwah πŸ’–

πŸ“¦ where this page comes from