BloombergLP::bdlsb::FixedMemInput::FixedMemInput

Create a FixedMemInput using the specified buffer and length.

Synopsis

Declared in <bdlsb_fixedmeminput.h>

FixedMemInput(
    char const* buffer,
    std::size_t length);

Description

Create a FixedMemInput using the specified buffer of the specified length. The position indicator is set to the beginning of the buffer. The behavior is undefined unless buffer != 0 && length > 0 or length == 0. Note that buffer is held but not owned.

Parameters

NameDescription
buffercharacter buffer to read from (held, not owned)
lengthsize of buffer in bytes