MCPcopy Create free account
hub / github.com/PerroEngine/Perro / write

Method write

perro_source/api_modules/perro_networking/src/tcp.rs:159–163  ·  view source on GitHub ↗
(&mut self, bytes: &[u8])

Source from the content-addressed store, hash-verified

157 Err(err) if err.kind() == io::ErrorKind::WouldBlock => Ok(None),
158 Err(err) => Err(NetError::from_io(NetErrorKind::Receive, err)),
159 }
160 }
161
162 pub fn poll_event(&mut self, max_bytes: usize) -> NetResult<Option<NetEvent>> {
163 self.flush_pending()?;
164 let Some(bytes) = self.read_available(max_bytes)? else {
165 return Ok(None);
166 };

Callers 9

tcp_sendMethod · 0.45
writeFunction · 0.45
set_project_rootFunction · 0.45
clear_dlc_mountsFunction · 0.45
mount_dlc_diskFunction · 0.45
mount_dlc_archiveFunction · 0.45

Calls

no outgoing calls