OSDN Git Service
(root)
/
meshio
/
meshio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add constraint.
[meshio/meshio.git]
/
src
/
binary.cpp
diff --git
a/src/binary.cpp
b/src/binary.cpp
index
08bc752
..
229a98e
100644
(file)
--- a/
src/binary.cpp
+++ b/
src/binary.cpp
@@
-124,12
+124,17
@@
FileWriter::FileWriter(const char *path)
io_=fopen(path, "wb");
}
io_=fopen(path, "wb");
}
+FileWriter::FileWriter(const wchar_t *path)
+{
+ io_=_wfopen(path, L"wb");
+}
+
FileWriter::~FileWriter()
{
fclose(io_);
}
FileWriter::~FileWriter()
{
fclose(io_);
}
-void FileWriter::write(char *buf, unsigned int size)
+void FileWriter::write(c
onst c
har *buf, unsigned int size)
{
fwrite(buf, size, 1, io_);
}
{
fwrite(buf, size, 1, io_);
}