MCPcopy Create free account
hub / github.com/coreboot/coreboot / write

Function write

util/mediatek/gen-bl-img.py:13–15  ·  view source on GitHub ↗
(path, data)

Source from the content-addressed store, hash-verified

11 return f.read()
12
13def write(path, data):
14 with open(path, 'wb') as f:
15 f.write(data)
16
17def padding(data, size, pattern=b'\0'):
18 return data + pattern * (size - len(data))

Callers 15

console_writeFunction · 0.85
XC_write_socketFunction · 0.85
dump_flashrom_layoutFunction · 0.85
create_fmap_templateFunction · 0.85
write_regionsFunction · 0.85
write_imageFunction · 0.85
mainFunction · 0.85
build_twsi_headerFunction · 0.85
build_headersFunction · 0.85
build_bootrom_imgFunction · 0.85
build_regular_imgFunction · 0.85
write_from_buf_to_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected