Boost.Redis

    • Introduction
    • Requests and responses
    • Cancellation and timeouts
    • Serializing and parsing into custom types
    • Authentication
    • Logging
    • Sentinel
    • Echo server benchmark
    • Comparison with other Redis clients
    • Examples
    • Reference
    • Acknowledgements
    • Changelog
  • boost::redis::resp3::flat_tree::data_size
arrow_upward

boost::redis::resp3::flat_tree::data_size

Returns the size of the data buffer, in bytes.

Synopsis

Declared in <boost/redis/resp3/flat_tree.hpp>

std::size_t
data_size() const noexcept;

Description

You may use this function to calculate how much capacity should be reserved for data when calling reserve.

Exception safety

No‐throw guarantee.

Return Value

The number of bytes in use in the data buffer.

Created with MrDocs