Go to the documentation of this file.
14 #ifndef GRPC_EVENT_ENGINE_MEMORY_REQUEST_H
15 #define GRPC_EVENT_ENGINE_MEMORY_REQUEST_H
19 #include "absl/strings/string_view.h"
24 namespace experimental {
46 size_t min()
const {
return min_; }
47 size_t max()
const {
return max_; }
50 return min_ == other.min_ && max_ == other.max_;
53 return !(*
this == other);
56 template <
typename Sink>
58 if (r.min_ == r.max_) {
75 #endif // GRPC_EVENT_ENGINE_MEMORY_REQUEST_H
size_t max() const
Definition: memory_request.h:47
MemoryRequest(size_t min, size_t max)
Request a range of memory.
Definition: memory_request.h:35
bool operator!=(const MemoryRequest &other) const
Definition: memory_request.h:52
Reservation request - how much memory do we want to allocate?
Definition: memory_request.h:27
MemoryRequest Increase(size_t amount) const
Increase the size by amount.
Definition: memory_request.h:42
friend void AbslStringify(Sink &s, const MemoryRequest &r)
Definition: memory_request.h:57
bool operator==(const MemoryRequest &other) const
Definition: memory_request.h:49
size_t min() const
Definition: memory_request.h:46
Definition: endpoint_config.h:24
MemoryRequest(size_t n)
Request a fixed amount of memory.
Definition: memory_request.h:31
static constexpr size_t max_allowed_size()
Maximum allowable request size - hard coded to 1GB.
Definition: memory_request.h:38