Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MearaY/StegaPy
/ bytes_to_file
Method
bytes_to_file
StegaPy/util/common_util.py:19–22 ·
view source on GitHub ↗
将字节数组写入文件
(data, file_path)
Source
from the content-addressed store, hash-verified
17
18
@staticmethod
19
def
bytes_to_file(data, file_path):
20
""
"将字节数组写入文件"
""
21
with
open(file_path,
'wb'
)
as
f:
22
f.write(data)
23
24
@staticmethod
25
def
stream_to_bytes(stream):
Callers
nothing calls this directly
Calls
1
write
Method · 0.45
Tested by
no test coverage detected