A bag implementation using a fixed amount of storage, so that it does not perform any dynamic allocations for its operations.
More...
#include "client/simple_address_range_bag.h"
|
static const size_t | num_entries = NumEntries |
| Constant and publicly accessible version of the template parameter.
|
|
template<size_t NumEntries = 64>
class crashpad::TSimpleAddressRangeBag< NumEntries >
A bag implementation using a fixed amount of storage, so that it does not perform any dynamic allocations for its operations.
The actual bag storage (TSimpleAddressRangeBag::Entry) is POD, so that it can be transmitted over various IPC mechanisms.
◆ Insert() [1/2]
template<size_t NumEntries = 64>
Inserts the given range into the bag. Duplicates and overlapping ranges are supported and allowed, but not coalesced.
- Parameters
-
[in] | range | The range to be inserted. The range must have either a non-zero base address or size. |
- Returns
true
if there was space to insert the range into the bag, otherwise false
with an error logged.
◆ Insert() [2/2]
template<size_t NumEntries = 64>
Inserts the given range into the bag. Duplicates and overlapping ranges are supported and allowed, but not coalesced.
- Parameters
-
[in] | base | The base of the range to be inserted. May not be null. |
[in] | size | The size of the range to be inserted. May not be zero. |
- Returns
true
if there was space to insert the range into the bag, otherwise false
with an error logged.
◆ Remove() [1/2]
template<size_t NumEntries = 64>
Removes the given range from the bag.
- Parameters
-
[in] | range | The range to be removed. The range must have either a non-zero base address or size. |
- Returns
true
if the range was found and removed, otherwise false
with an error logged.
◆ Remove() [2/2]
template<size_t NumEntries = 64>
Removes the given range from the bag.
- Parameters
-
[in] | base | The base of the range to be removed. May not be null. |
[in] | size | The size of the range to be removed. May not be zero. |
- Returns
true
if the range was found and removed, otherwise false
with an error logged.
The documentation for this class was generated from the following file:
- client/simple_address_range_bag.h