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

Maximum OriginPush request in every mode. More...

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

Public Member Functions

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

Detailed Description

Maximum OriginPush request in every mode.

Zero is unlimited.

Constructor & Destructor Documentation

◆ WriteTransfer() [1/3]

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

Store the transfer maximum.

Parameters
valueBytes, or zero for unlimited.

◆ WriteTransfer() [2/3]

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

Copy the limit.

Parameters
otherSource.

◆ WriteTransfer() [3/3]

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

Move the limit.

Parameters
otherSource.

◆ ~WriteTransfer()

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

Destroy the non-owning limit.

Member Function Documentation

◆ operator=() [1/2]

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

Replace the limit.

Parameters
otherSource.
Returns
This knob.

◆ operator=() [2/2]

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

Move-assign the limit.

Parameters
otherSource.
Returns
This knob.

◆ Value()

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

Requested transfer maximum.

Returns
Bytes, or zero for unlimited.

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