[#BloombergLP-bdlsb-FixedMemInput-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlsb.adoc[bdlsb]::xref:BloombergLP/bdlsb/FixedMemInput.adoc[FixedMemInput]::FixedMemInput :relfileprefix: ../../../ :mrdocs: Create a `FixedMemInput` using the specified buffer and length. == Synopsis Declared in `<bdlsb_fixedmeminput.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | *buffer* | character buffer to read from (held, not owned) | *length* | size of `buffer` in bytes |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#