diff options
Diffstat (limited to 'gcc/d/dmd/root/file.d')
-rw-r--r-- | gcc/d/dmd/root/file.d | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/d/dmd/root/file.d b/gcc/d/dmd/root/file.d index a01cfdc2aac..b40413c9ef1 100644 --- a/gcc/d/dmd/root/file.d +++ b/gcc/d/dmd/root/file.d @@ -26,11 +26,15 @@ import dmd.root.string; import dmd.common.file; import dmd.common.string; -/// Owns a (rmem-managed) file buffer. -struct FileBuffer +nothrow: + +/// Owns a (rmem-managed) buffer. +struct Buffer { ubyte[] data; + nothrow: + this(this) @disable; ~this() pure nothrow @@ -54,7 +58,7 @@ struct File static struct ReadResult { bool success; - FileBuffer buffer; + Buffer buffer; /// Transfers ownership of the buffer to the caller. ubyte[] extractSlice() pure nothrow @nogc @safe |