MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / reset

Method reset

src/framework/io/binary.cpp:113–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void BinaryBlob::reset() noexcept {
114#if defined(__unix__) || defined(__APPLE__)
115 if (mapped_ != nullptr) {
116 munmap(const_cast<std::byte *>(mapped_), size_);
117 mapped_ = nullptr;
118 size_ = 0;
119 }
120#else
121 mapped_ = nullptr;
122 size_ = 0;
123#endif
124 owned_.clear();
125 owned_.shrink_to_fit();
126}
127
128BinaryBlob read_binary_blob(const std::filesystem::path & path) {
129#if defined(__unix__) || defined(__APPLE__)

Callers 8

runMethod · 0.45
release_runtime_cacheMethod · 0.45
predict_f0_lockedMethod · 0.45
GraphMethod · 0.45
GraphMethod · 0.45
prepare_host_graph_planFunction · 0.45
configure_loggingFunction · 0.45
run_streamingFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected