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

Method write_all

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

Source from the content-addressed store, hash-verified

163 self.flush_pending()?;
164 let Some(bytes) = self.read_available(max_bytes)? else {
165 return Ok(None);
166 };
167 let peer = self.peer_string();
168 if bytes.is_empty() {
169 return Ok(Some(NetEvent::TcpDisconnected { peer }));
170 }
171 Ok(Some(NetEvent::TcpData { peer, bytes }))
172 }

Callers 12

write_frameMethod · 0.80
start_multiMethod · 0.80
writeFunction · 0.80
save_assetFunction · 0.80
compress_zlib_bestFunction · 0.80
write_headerFunction · 0.80
write_index_entryFunction · 0.80
compress_zlib_bestFunction · 0.80
write_http_responseFunction · 0.80

Calls

no outgoing calls

Tested by 1

start_multiMethod · 0.64