MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / write_frame

Method write_frame

claw-code/rust/crates/runtime/src/mcp_stdio.rs:640–644  ·  view source on GitHub ↗
(&mut self, payload: &[u8])

Source from the content-addressed store, hash-verified

638 }
639
640 pub async fn write_frame(&mut self, payload: &[u8]) -> io::Result<()> {
641 let encoded = encode_frame(payload);
642 self.write_all(&encoded).await?;
643 self.flush().await
644 }
645
646 pub async fn read_frame(&mut self) -> io::Result<Vec<u8>> {
647 let mut content_length = None;

Callers 1

write_jsonrpc_messageMethod · 0.80

Calls 3

encode_frameFunction · 0.85
write_allMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected