MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / read_binary

Function read_binary

tools/utils.py:175–178  ·  view source on GitHub ↗

Read from a file opened in binary mode.

(file_path)

Source from the content-addressed store, hash-verified

173
174
175def read_binary(file_path):
176 """Read from a file opened in binary mode."""
177 with open(file_path, 'rb') as fh:
178 return fh.read()
179
180
181def write_file(file_path, text, line_endings=None):

Calls 2

openFunction · 0.50
readMethod · 0.45

Tested by 15

test_embindMethod · 0.72
assert_aliases_matchMethod · 0.72
test_separate_dwarfMethod · 0.72
test_multiple_g_flagsMethod · 0.72
displayMethod · 0.68
check_output_sizesMethod · 0.68