BloombergLP::bdlsb::FixedMemInStreamBuf::xsgetn

Read characters from this stream buffer into a destination buffer.

Synopsis

Declared in <bdlsb_fixedmeminstreambuf.h>

virtual
std::streamsize
xsgetn(
    char_type* destination,
    std::streamsize length) override;

Description

Read the specified length number of characters into the specified destination. Return the number of characters successfully read. The behavior is undefined unless 0 <= length.

Return Value

number of characters successfully read

Parameters

NameDescription
destinationbuffer to receive the characters read
lengthnumber of characters to read