/usr/include/bobcat/ohexstreambuf is in libbobcat-dev 3.19.01-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #ifndef INCLUDED_BOBCAT_OHEXSTREAMBUF_
#define INCLUDED_BOBCAT_OHEXSTREAMBUF_
#include <iosfwd>
#include <bobcat/ofilterstreambuf>
namespace FBB
{
class OHexStreambuf: public OFilterStreambuf
{
std::ios::fmtflags d_current;
char d_padding;
size_t d_width;
size_t d_count;
public:
OHexStreambuf(std::ostream &out, size_t width = 0);
virtual ~OHexStreambuf();
size_t size() const; // .f
static std::string text2bin(std::string const &in); // length and
// contents not
// checked
protected:
int pSync();
private:
virtual int overflow(int ch);
virtual int sync();
};
inline size_t OHexStreambuf::size() const
{
return d_count;
}
} // FBB
#endif
|