Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
impeller::Bytes Class Reference

#include <allocation_size.h>

Inheritance diagram for impeller::Bytes:
impeller::AllocationSize< 1u >

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 AllocationSizeoperator+= (const AllocationSize &other)
 
constexpr AllocationSizeoperator-= (const AllocationSize &other)
 

Detailed Description

Definition at line 129 of file allocation_size.h.

Constructor & Destructor Documentation

◆ Bytes() [1/3]

constexpr impeller::Bytes::Bytes ( )
constexprdefault

◆ Bytes() [2/3]

constexpr impeller::Bytes::Bytes ( uint64_t  size)
inlineexplicitconstexpr

Definition at line 135 of file allocation_size.h.

constexpr AllocationSize()=default
Create a zero allocation size.

◆ Bytes() [3/3]

constexpr impeller::Bytes::Bytes ( AllocationSize< 1u >  size)
inlineexplicitconstexpr

Definition at line 140 of file allocation_size.h.

140: AllocationSize(size) {}

The documentation for this class was generated from the following file: