pdal::Charbuf

class pdal::Charbuf

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

Inherits from streambuf

Public Functions

PDAL_DLL Charbuf()

Construct an empty Charbuf.

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

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

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