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

Function read_u32le

src/framework/assets/torch_bin.cpp:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23uint32_t read_u32le(const uint8_t * data) {
24 return static_cast<uint32_t>(data[0]) | (static_cast<uint32_t>(data[1]) << 8) |
25 (static_cast<uint32_t>(data[2]) << 16) | (static_cast<uint32_t>(data[3]) << 24);
26}
27
28std::vector<uint8_t> read_file(const std::filesystem::path & path) {
29 std::ifstream stream(path, std::ios::binary | std::ios::ate);

Callers 2

read_zip_entriesFunction · 0.85
read_u32Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected