pdal::Charbuf

pdal::Charbuf#

class Charbuf : public std::streambuf#

Allow a data buffer to be used at a std::streambuf.

Public Functions

inline Charbuf()#

Construct an empty Charbuf.

inline Charbuf(std::vector<char> &v, pos_type bufOffset = 0)#

Construct a Charbuf that wraps a byte vector.

Parameters:
  • v – Byte vector to back streambuf.

  • bufOffset – Offset in vector (ignore bytes before offset).

inline Charbuf(char *buf, size_t count, pos_type bufOffset = 0)#

Construct a Charbuf that wraps a byte buffer.

Parameters:
  • buf – Buffer to back streambuf.

  • count – Size of buffer.

  • bufOffset – Offset in vector (ignore bytes before offset).

void initialize(char *buf, size_t count, pos_type bufOffset = 0)#

Set a buffer to back a Charbuf.

Parameters:
  • buf – Buffer to back streambuf.

  • count – Size of buffer.

  • bufOffset – Offset in vector (ignore bytes before offset).