MCPcopy Create free account
hub / github.com/bytecodealliance/system-interface / _reopen_append

Function _reopen_append

src/fs/file_io_ext.rs:1035–1037  ·  view source on GitHub ↗
(file: &fs::File)

Source from the content-addressed store, hash-verified

1033
1034#[cfg(windows)]
1035unsafe fn _reopen_append(file: &fs::File) -> io::Result<fs::File> {
1036 file.reopen(cap_fs_ext::OpenOptions::new().append(true))
1037}
1038
1039fn read_to_end_at(file: &std::fs::File, buf: &mut Vec<u8>, offset: u64) -> io::Result<usize> {
1040 let len = match file.metadata()?.len().checked_sub(offset) {

Callers 1

reopen_appendFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected