StormByte-Buffer 4.0.0
C++26 buffer module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Buffer::IO::ReadChunk Class Reference

Maximum OriginPull request. More...

#include <StormByte/buffer/io/parameters.hxx>

Public Member Functions

 ReadChunk (StormByte::ByteSize value) noexcept
 Store the requested transfer limit.
 ReadChunk (const ReadChunk &other) noexcept=default
 Copy the limit.
 ReadChunk (ReadChunk &&other) noexcept=default
 Move the limit.
 ~ReadChunk () noexcept=default
 Destroy the non-owning limit.
ReadChunk & operator= (const ReadChunk &other) noexcept=default
 Replace the limit.
ReadChunk & operator= (ReadChunk &&other) noexcept=default
 Move-assign the limit.
StormByte::ByteSize Value () const noexcept
 Requested transfer maximum.

Detailed Description

Maximum OriginPull request.

Zero selects the 64 KiB default.

Constructor & Destructor Documentation

◆ ReadChunk() [1/3]

StormByte::Buffer::IO::ReadChunk::ReadChunk ( StormByte::ByteSize value)
inlineexplicitnoexcept

Store the requested transfer limit.

Parameters
valueBytes; zero selects 64 KiB.

◆ ReadChunk() [2/3]

StormByte::Buffer::IO::ReadChunk::ReadChunk ( const ReadChunk & other)
defaultnoexcept

Copy the limit.

Parameters
otherSource.

◆ ReadChunk() [3/3]

StormByte::Buffer::IO::ReadChunk::ReadChunk ( ReadChunk && other)
defaultnoexcept

Move the limit.

Parameters
otherSource.

◆ ~ReadChunk()

StormByte::Buffer::IO::ReadChunk::~ReadChunk ( )
defaultnoexcept

Destroy the non-owning limit.

Member Function Documentation

◆ operator=() [1/2]

ReadChunk & StormByte::Buffer::IO::ReadChunk::operator= ( const ReadChunk & other)
defaultnoexcept

Replace the limit.

Parameters
otherSource.
Returns
This knob.

◆ operator=() [2/2]

ReadChunk & StormByte::Buffer::IO::ReadChunk::operator= ( ReadChunk && other)
defaultnoexcept

Move-assign the limit.

Parameters
otherSource.
Returns
This knob.

◆ Value()

StormByte::ByteSize StormByte::Buffer::IO::ReadChunk::Value ( ) const
inlinenoexcept

Requested transfer maximum.

Returns
Bytes, or zero for the default.

The documentation for this class was generated from the following file: