@@ -2,64 +2,64 @@ features: native
22
33resource File
44
5- pub fn File.open(path: read Path) -> Result<File, FileError>
5+ pub native fn File.open(path: read Path) -> Result<File, FileError>
66 effects(native)
77
8- pub fn File.open_read(path: read Path) -> Result<File, FileError>
8+ pub native fn File.open_read(path: read Path) -> Result<File, FileError>
99 effects(native)
1010
11- pub fn File.open_write(path: read Path) -> Result<File, FileError>
11+ pub native fn File.open_write(path: read Path) -> Result<File, FileError>
1212 effects(native)
1313
14- pub fn File.exists(path: read Path) -> Bool
14+ pub native fn File.exists(path: read Path) -> Bool
1515 effects(native)
1616
17- pub fn File.read_bytes(path: read Path) -> Result<fresh Bytes, FileError>
17+ pub native fn File.read_bytes(path: read Path) -> Result<fresh Bytes, FileError>
1818 effects(native)
1919
20- pub fn File.read_string(path: read Path) -> Result<String, FileError>
20+ pub native fn File.read_string(path: read Path) -> Result<String, FileError>
2121 effects(native)
2222
23- pub fn File.write_bytes(path: read Path, data: read Bytes) -> Result<Unit, FileError>
23+ pub native fn File.write_bytes(path: read Path, data: read Bytes) -> Result<Unit, FileError>
2424 effects(native)
2525
26- pub fn File.append_bytes(path: read Path, data: read Bytes) -> Result<Unit, FileError>
26+ pub native fn File.append_bytes(path: read Path, data: read Bytes) -> Result<Unit, FileError>
2727 effects(native)
2828
29- pub fn File.write_string_to_path(path: read Path, text: read String) -> Result<Unit, FileError>
29+ pub native fn File.write_string_to_path(path: read Path, text: read String) -> Result<Unit, FileError>
3030 effects(native)
3131
32- pub fn File.write_atomic(path: read Path, text: read String) -> Result<Unit, FileError>
32+ pub native fn File.write_atomic(path: read Path, text: read String) -> Result<Unit, FileError>
3333 effects(native)
3434
35- pub fn File.append_string(path: read Path, text: read String) -> Result<Unit, FileError>
35+ pub native fn File.append_string(path: read Path, text: read String) -> Result<Unit, FileError>
3636 effects(native)
3737
38- pub fn File.remove(path: read Path) -> Result<Unit, FileError>
38+ pub native fn File.remove(path: read Path) -> Result<Unit, FileError>
3939 effects(native)
4040
41- pub fn File.read_all(file: mut File) -> Result<fresh Bytes, FileError>
41+ pub native fn File.read_all(file: mut File) -> Result<fresh Bytes, FileError>
4242 effects(native)
4343
44- pub fn File.read_all_string(file: mut File) -> Result<String, FileError>
44+ pub native fn File.read_all_string(file: mut File) -> Result<String, FileError>
4545 effects(native)
4646
47- pub fn File.read_into(file: mut File, buffer: mut Buffer) -> Result<Bool, FileError>
47+ pub native fn File.read_into(file: mut File, buffer: mut Buffer) -> Result<Bool, FileError>
4848 effects(native)
4949
50- pub fn File.write(file: mut File, data: read Bytes) -> Result<Unit, FileError>
50+ pub native fn File.write(file: mut File, data: read Bytes) -> Result<Unit, FileError>
5151 effects(native)
5252
53- pub fn File.write_bytes_view(file: mut File, data: read BytesView) -> Result<Unit, FileError>
53+ pub native fn File.write_bytes_view(file: mut File, data: read BytesView) -> Result<Unit, FileError>
5454 effects(native)
5555
56- pub fn File.write_string(file: mut File, text: read String) -> Result<Unit, FileError>
56+ pub native fn File.write_string(file: mut File, text: read String) -> Result<Unit, FileError>
5757 effects(native)
5858
59- pub fn File.write_buffer(file: mut File, buffer: read Buffer) -> Result<Unit, FileError>
59+ pub native fn File.write_buffer(file: mut File, buffer: read Buffer) -> Result<Unit, FileError>
6060 effects(native)
6161
62- pub fn File.write_buffer_view(file: mut File, buffer: read BufferView) -> Result<Unit, FileError>
62+ pub native fn File.write_buffer_view(file: mut File, buffer: read BufferView) -> Result<Unit, FileError>
6363 effects(native)
6464
6565pub fn FileError.message(error: read FileError) -> String
0 commit comments