cpp/io/basic spanbuf

is a std whose associated character sequence is a memory-resident sequence of arbitrary characters, which can be initialized from or made available as an instance of.

performs I/O on a fixed buffer, and therefore it does not attempt to obtain a new buffer when the underlying buffer is exhausted.

Typical implementations of add two member subobjects: a std recording the open mode, and a  referencing the underlying buffer.