Constructors

Synopses

Declared in <bslx_testinstream.h>

Create an empty test input stream. Note that the constructed object is useless until a buffer is set with the reset method.

explicit
TestInStream();

Create a test input stream containing the specified srcData.

explicit
TestInStream(bslstl::StringRef const& srcData);

Create a test input stream containing the specified initial numBytes from the specified buffer. The behavior is undefined unless 0 == numBytes if 0 == buffer.

TestInStream(
    char const* buffer,
    std::size_t numBytes);

Parameters

Name

Description

srcData

string data to extract from

buffer

contiguous bytes to extract from

numBytes

number of bytes in buffer

Created with MrDocs