#include <allocation_size.h>
Public Member Functions | |
| constexpr | Bytes ()=default |
| constexpr | Bytes (uint64_t size) |
| constexpr | Bytes (AllocationSize< 1u > size) |
Public Member Functions inherited from impeller::AllocationSize< 1u > | |
| constexpr | AllocationSize ()=default |
| Create a zero allocation size. | |
| constexpr | AllocationSize (T size) |
Create an allocation size with the amount in the Period number of bytes. | |
| constexpr | AllocationSize (const AllocationSize< OtherPeriod > &other) |
| Create an allocation size from another instance with a different period. | |
| constexpr | AllocationSize (uint64_t byte_size, FromBytesTag) |
| Create an allocation size with the amount directly specified in bytes. | |
| constexpr uint64_t | GetByteSize () const |
| constexpr double | GetSize () const |
| constexpr AllocationSize | ConvertTo () |
| Convert the allocation size from one unit to another. | |
| constexpr auto | operator<=> (const AllocationSize &other) const=default |
| constexpr | operator bool () const |
| constexpr AllocationSize | operator+ (const AllocationSize &other) const |
| constexpr AllocationSize | operator- (const AllocationSize &other) const |
| constexpr AllocationSize & | operator+= (const AllocationSize &other) |
| constexpr AllocationSize & | operator-= (const AllocationSize &other) |
Definition at line 129 of file allocation_size.h.
|
constexprdefault |
|
inlineexplicitconstexpr |
Definition at line 135 of file allocation_size.h.
|
inlineexplicitconstexpr |
Definition at line 140 of file allocation_size.h.