Beast Logo

PrevUpHomeNext

static_streambuf_n

A DynamicBuffer with a fixed size internal buffer.

template<
    std::size_t N>
class static_streambuf_n :
    public static_streambuf
Types

Name

Description

const_buffers_type

The type used to represent the input sequence as a list of buffers.

mutable_buffers_type

The type used to represent the output sequence as a list of buffers.

Member Functions

Name

Description

capacity

Return the maximum sum of input and output sizes that can be held without an allocation.

commit

Move bytes from the output sequence to the input sequence.

consume

Remove bytes from the input sequence.

data

Get a list of buffers that represent the input sequence.

max_size

Return the maximum sum of the input and output sequence sizes.

prepare

Get a list of buffers that represent the output sequence, with the given size.

reset

Reset the stream buffer.

size

Return the size of the input sequence.

static_streambuf_n

Construct a static stream buffer.

N

The number of bytes in the internal buffer.

Remarks

To reduce the number of template instantiations when passing objects of this type in a deduced context, the signature of the receiving function should use static_streambuf instead.

Requirements

Header: beast/core/static_streambuf.hpp

Convenience header: beast/core.hpp


PrevUpHomeNext