5 #ifndef FLUTTER_IMPELLER_BASE_ALLOCATION_H_
6 #define FLUTTER_IMPELLER_BASE_ALLOCATION_H_
11 #include "flutter/fml/mapping.h"
27 [[nodiscard]]
bool Truncate(
size_t length,
bool npot =
true);
32 uint8_t* buffer_ =
nullptr;
36 [[nodiscard]]
bool Reserve(
size_t reserved);
38 [[nodiscard]]
bool ReserveNPOT(
size_t reserved);
49 const std::shared_ptr<Allocation>& allocation);
52 std::shared_ptr<const std::string>
string);
58 #endif // FLUTTER_IMPELLER_BASE_ALLOCATION_H_