1 /* Invisible Vector Library
2 * coded by Ketmar // Invisible Vector <ketmar@ketmar.no-ip.org>
3 * Understanding is not required. Only obedience.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License ONLY.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 module iv
.vfs
.types
/*is aliced*/;
18 public import iv
.alice
;
20 private import core
.stdc
.stdio
: SEEK_SET
, SEEK_CUR
, SEEK_END
;
21 public enum Seek
: int {
28 public mixin template VFSHiddenPointerHelper(T
, string name
) {
30 private usize hptr_"~name
~"_;
31 final @property inout(T)* "~name
~" () inout pure nothrow @trusted @nogc { pragma(inline, true); return cast(typeof(return))hptr_"~name
~"_; }
32 final @property void "~name
~" (T* v) pure nothrow @trusted @nogc { pragma(inline, true); hptr_"~name
~"_ = cast(usize)v; }