pdal::Charbuf

class pdal::Charbuf : public std::streambuf

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

Public Functions

inline PDAL_DLL Charbuf()

Construct an empty Charbuf.

inline PDAL_DLL 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 PDAL_DLL 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).

PDAL_DLL 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).