Reservation request - how much memory do we want to allocate?
More...
#include <memory_request.h>
Reservation request - how much memory do we want to allocate?
◆ MemoryRequest() [1/2]
grpc_event_engine::experimental::MemoryRequest::MemoryRequest |
( |
size_t |
n | ) |
|
|
inline |
Request a fixed amount of memory.
◆ MemoryRequest() [2/2]
grpc_event_engine::experimental::MemoryRequest::MemoryRequest |
( |
size_t |
min, |
|
|
size_t |
max |
|
) |
| |
|
inline |
Request a range of memory.
Requires: min <= max. Requires: max <= max_size()
◆ Increase()
MemoryRequest grpc_event_engine::experimental::MemoryRequest::Increase |
( |
size_t |
amount | ) |
const |
|
inline |
Increase the size by amount.
Undefined behavior if min() + amount or max() + amount overflows.
◆ max()
size_t grpc_event_engine::experimental::MemoryRequest::max |
( |
| ) |
const |
|
inline |
◆ max_allowed_size()
static constexpr size_t grpc_event_engine::experimental::MemoryRequest::max_allowed_size |
( |
| ) |
|
|
inlinestaticconstexpr |
Maximum allowable request size - hard coded to 1GB.
◆ min()
size_t grpc_event_engine::experimental::MemoryRequest::min |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool grpc_event_engine::experimental::MemoryRequest::operator!= |
( |
const MemoryRequest & |
other | ) |
const |
|
inline |
◆ operator==()
bool grpc_event_engine::experimental::MemoryRequest::operator== |
( |
const MemoryRequest & |
other | ) |
const |
|
inline |
◆ AbslStringify
The documentation for this class was generated from the following file: