Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
8b3ed5d5
Commit
8b3ed5d5
authored
Nov 27, 2023
by
Artur Wojcik
Browse files
open stream binary for writing binary image
parent
72f37e3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/file_buffer.cpp
src/file_buffer.cpp
+1
-1
No files found.
src/file_buffer.cpp
View file @
8b3ed5d5
...
...
@@ -64,7 +64,7 @@ std::string read_string(const std::string& filename)
void
write_buffer
(
const
std
::
string
&
filename
,
const
char
*
buffer
,
std
::
size_t
size
)
{
std
::
ofstream
os
(
filename
);
std
::
ofstream
os
(
filename
,
std
::
ios
::
out
|
std
::
ios
::
binary
);
os
.
write
(
buffer
,
size
);
}
void
write_buffer
(
const
std
::
string
&
filename
,
const
std
::
vector
<
char
>&
buffer
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment