Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 4 of 4) sorted by relevance

/wasmtime-44.0.1/crates/wasi/src/cli/
H A Dfile.rs128 let bytes_read = self in read() localVariable
132 if bytes_read == 0 { in read()
135 buf.truncate(bytes_read); in read()
/wasmtime-44.0.1/crates/wasi-common/src/snapshots/
H A Dpreview_1.rs360 let bytes_read: u64 = if is_shared_memory { in fd_read() localVariable
369 .get_range(0..bytes_read.try_into()?) in fd_read()
372 bytes_read in fd_read()
392 Ok(types::Size::try_from(bytes_read)?) in fd_read()
431 let bytes_read: u64 = if is_shared_memory { in fd_pread() localVariable
438 let bytes_read = f in fd_pread() localVariable
442 .get_range(0..bytes_read.try_into()?) in fd_pread()
445 bytes_read in fd_pread()
461 Ok(types::Size::try_from(bytes_read)?) in fd_pread()
1238 let (bytes_read, ro_flags) = f in sock_recv()
[all …]
/wasmtime-44.0.1/crates/wasi/src/p2/host/
H A Dfilesystem.rs129 let (bytes_read, state) = match r? { in read()
134 buffer.truncate(bytes_read); in read()
/wasmtime-44.0.1/crates/wasi/src/
H A Dp1.rs1689 let bytes_read = match (file.as_blocking_file(), memory.as_slice_mut(iov)?) { in fd_read() localVariable
1704 let bytes_read = file in fd_read() localVariable
1707 buf.truncate(bytes_read); in fd_read()
1718 .checked_add(bytes_read.try_into()?) in fd_read()
1722 Ok(bytes_read.try_into()?) in fd_read()