paludis Version 3.0.2
The one true package mangler
paludis::SafeIFStreamBuf Class Reference

#include <safe_ifstream.hh>

Inheritance diagram for paludis::SafeIFStreamBuf:

Public Attributes

int fd
 Our file descriptor.

Protected Member Functions

int_type underflow () override
pos_type seekoff (off_type, std::ios_base::seekdir, std::ios_base::openmode) override
pos_type seekpos (pos_type, std::ios_base::openmode) override

Protected Attributes

char buffer [buffer_size]

Static Protected Attributes

static const int lookbehind_size = 16
static const int buffer_size = 512 + lookbehind_size

Basic operations

 SafeIFStreamBuf (const int f)

Detailed Description

Input stream buffer class that can be opened via an FD, and that doesn't do retarded things when given a non-file.

See TCppSL Ch. 13.13 for what we're doing here. The buffer code is based upon the "io/inbuf1.hpp" example in section 13.13.3.

Since
0.34.3

The documentation for this class was generated from the following file: