mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 05:17:26 +02:00
@ -6,6 +6,7 @@ Version 91:
|
|||||||
* Tidy up namespace qualifiers
|
* Tidy up namespace qualifiers
|
||||||
* Tidy up MSVC CMakeLists.txt
|
* Tidy up MSVC CMakeLists.txt
|
||||||
* Optimize buffered_read_stream
|
* Optimize buffered_read_stream
|
||||||
|
* constexpr in derived buffers
|
||||||
|
|
||||||
WebSocket:
|
WebSocket:
|
||||||
|
|
||||||
|
@ -235,6 +235,20 @@ public:
|
|||||||
{
|
{
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Return the maximum sum of the input and output sequence sizes.
|
||||||
|
std::size_t constexpr
|
||||||
|
max_size() const
|
||||||
|
{
|
||||||
|
return N;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Return the maximum sum of input and output sizes that can be held without an allocation.
|
||||||
|
std::size_t constexpr
|
||||||
|
capacity() const
|
||||||
|
{
|
||||||
|
return N;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // beast
|
} // beast
|
||||||
|
@ -216,6 +216,20 @@ public:
|
|||||||
{
|
{
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Return the maximum sum of the input and output sequence sizes.
|
||||||
|
std::size_t constexpr
|
||||||
|
max_size() const
|
||||||
|
{
|
||||||
|
return N;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Return the maximum sum of input and output sizes that can be held without an allocation.
|
||||||
|
std::size_t constexpr
|
||||||
|
capacity() const
|
||||||
|
{
|
||||||
|
return N;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // beast
|
} // beast
|
||||||
|
Reference in New Issue
Block a user