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

Method read

external/ggml/src/gguf.cpp:258–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256
257 template <typename T>
258 bool read(T & dst) const {
259 const size_t size = sizeof(dst);
260 if (nbytes_remain < size) {
261 return false;
262 }
263 const size_t nread = fread(&dst, 1, size, file);
264 nbytes_remain -= nread;
265 return nread == size;
266 }
267
268 template <typename T>
269 bool read(std::vector<T> & dst, const size_t n) const {

Callers 15

download_fileFunction · 0.80
archive_memberFunction · 0.80
sha256_fileFunction · 0.80
read_fileFunction · 0.80
read_typed_fileFunction · 0.80
read_binary_blobFunction · 0.80
load_safetensors_indexFunction · 0.80
read_scalarFunction · 0.80
read_wav_f32Function · 0.80
load_noise_schedule_fileFunction · 0.80
build_text_dir_batchFunction · 0.80
compare_moss_ttsFunction · 0.80

Calls 5

ggml_typeEnum · 0.70
gguf_typeEnum · 0.70
resizeMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by 1

setUpMethod · 0.64