MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / parse_command_complete

Method parse_command_complete

src/protocol/parser.rs:134–144  ·  view source on GitHub ↗
(
        &self,
        length: usize,
        reader: &mut BufferReader<'_>,
    )

Source from the content-addressed store, hash-verified

132 }
133
134 fn parse_command_complete(
135 &self,
136 length: usize,
137 reader: &mut BufferReader<'_>,
138 ) -> Result<BackendMessage> {
139 let text = reader.cstring()?;
140 Ok(BackendMessage::CommandComplete(CommandCompleteMessage {
141 length,
142 text,
143 }))
144 }
145
146 fn parse_copy_data(&self, length: usize, bytes: &[u8]) -> Result<BackendMessage> {
147 let data_len = length.saturating_sub(4);

Callers 1

handle_packetMethod · 0.80

Calls 1

cstringMethod · 0.80

Tested by

no test coverage detected