5 #ifndef FLUTTER_IMPELLER_BASE_ALLOCATION_H_
6 #define FLUTTER_IMPELLER_BASE_ALLOCATION_H_
12 #include "flutter/fml/mapping.h"
28 [[nodiscard]]
bool Truncate(
size_t length,
bool npot =
true);
33 uint8_t* buffer_ =
nullptr;
37 [[nodiscard]]
bool Reserve(
size_t reserved);
39 [[nodiscard]]
bool ReserveNPOT(
size_t reserved);
50 const std::shared_ptr<Allocation>& allocation);
53 std::shared_ptr<const std::string>
string);
59 #endif // FLUTTER_IMPELLER_BASE_ALLOCATION_H_