MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / Deallocate

Method Deallocate

modules/render/animation/ozz_src/runtime/track.cc:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96template <typename _ValueType>
97void Track<_ValueType>::Deallocate() {
98 // Deallocate everything at once.
99 memory::default_allocator()->Deallocate(as_writable_bytes(values_).data(), alignof(_ValueType));
100
101 values_ = {};
102 ratios_ = {};
103 steps_ = {};
104 name_ = nullptr;
105}
106
107template <typename _ValueType>
108size_t Track<_ValueType>::size() const {

Callers 5

DestroyMethod · 0.45
DestroyMethod · 0.45
DeleteFunction · 0.45
~ContextMethod · 0.45
ResizeMethod · 0.45

Calls 3

default_allocatorFunction · 0.85
as_writable_bytesFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected