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

Function write_binary

tools/utils.py:191–194  ·  view source on GitHub ↗

Write to a file opened in binary mode.

(file_path, contents)

Source from the content-addressed store, hash-verified

189
190
191def write_binary(file_path, contents):
192 """Write to a file opened in binary mode."""
193 with open(file_path, 'wb') as fh:
194 fh.write(contents)
195
196
197def delete_file(filename):

Callers 4

test_binary_encodeMethod · 0.90
get_libraryMethod · 0.90
test_binary_encodeMethod · 0.90
write_fileFunction · 0.85

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by 2

test_binary_encodeMethod · 0.72
test_binary_encodeMethod · 0.72