MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / write

Method write

crates/openshell-server/src/multiplex.rs:1232–1235  ·  view source on GitHub ↗
(&mut self, buf: &[u8])

Source from the content-addressed store, hash-verified

1230
1231 impl std::io::Write for TraceBuf {
1232 fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
1233 self.0.lock().unwrap().extend_from_slice(buf);
1234 Ok(buf.len())
1235 }
1236
1237 fn flush(&mut self) -> std::io::Result<()> {
1238 Ok(())

Calls 1

lenMethod · 0.80