Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PABannier/bark.cpp
/ read_safe
Function
read_safe
bark.cpp:167–169 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
165
166
template <typename T>
167
static void read_safe(std::ifstream& fin, T& dest) {
168
fin.read((char*)&dest, sizeof(T));
169
}
170
171
template <typename T>
172
static void write_safe(std::ofstream& fout, T& dest) {
Callers
5
ggml_quantize_weights
Function · 0.70
bark_vocab_load
Function · 0.70
bark_model_load
Function · 0.70
bark_model_weights_quantize
Function · 0.70
bark_model_quantize
Function · 0.70
Calls
1
read
Method · 0.80
Tested by
no test coverage detected