diff --git a/source/dyaml/stream.d b/source/dyaml/stream.d index 01fd4af..b8cf4a0 100644 --- a/source/dyaml/stream.d +++ b/source/dyaml/stream.d @@ -58,11 +58,11 @@ class YFile : YStream { } void writeExact(const void* buffer, size_t size) { - this.file.write(cast(const ubyte[])buffer[0 .. size]); + this.file.rawWrite(cast(const) buffer[0 .. size]); } size_t write(const(ubyte)[] buffer) { - this.file.write(buffer); + this.file.rawWrite(buffer); return buffer.length; }