C
Qul::Platform::StackAllocator::Allocation Class
class Qul::Platform::StackAllocator::Allocation从栈缓冲区中分配指定大小的内存。更多...
该类首次出现在Qt Quick Ultralite (Platform) 1.5中。
公共函数
| Allocation(int32_t requestedSize) | |
| ~Allocation() | |
| void * | data() |
| void | free() |
| int32_t | size() const |
成员函数文档
Allocation::Allocation(int32_t requestedSize)
根据StackAllocator 提供的缓冲区构建一个内存分配。
如果缓冲区大小小于requestedSize ,则将其设置为剩余缓冲区大小。函数必须能够处理小于请求大小的分配情况。
[noexcept] Allocation::~Allocation()
释放已分配的内存。
void *Allocation::data()
返回已分配缓冲区的指针。
void Allocation::free()
释放已分配的内存。
int32_t Allocation::size() const
返回已分配缓冲区的大小。
在某些 Qt 许可下可用。
了解更多信息。