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

Function read_binary_file

src/framework/io/binary.cpp:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
165 nullptr,
166 OPEN_EXISTING,
167 FILE_ATTRIBUTE_NORMAL,
168 nullptr);
169 if (file != INVALID_HANDLE_VALUE) {
170 LARGE_INTEGER file_size {};
171 if (GetFileSizeEx(file, &file_size) != 0 &&
172 file_size.QuadPart >= 0 &&
173 static_cast<unsigned long long>(file_size.QuadPart) <=
174 static_cast<unsigned long long>(
175 std::numeric_limits<size_t>::max())) {
176 const size_t size = static_cast<size_t>(file_size.QuadPart);

Callers

nothing calls this directly

Calls 4

read_binary_blobFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected