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

Method parse_notification

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

Source from the content-addressed store, hash-verified

170 }
171
172 fn parse_notification(
173 &self,
174 length: usize,
175 reader: &mut BufferReader<'_>,
176 ) -> Result<BackendMessage> {
177 let process_id = reader.int32()?;
178 let channel = reader.cstring()?;
179 let payload = reader.cstring()?;
180 Ok(BackendMessage::Notification(NotificationResponseMessage {
181 length,
182 process_id,
183 channel,
184 payload,
185 }))
186 }
187
188 fn parse_row_description(
189 &self,

Callers 1

handle_packetMethod · 0.80

Calls 2

int32Method · 0.80
cstringMethod · 0.80

Tested by

no test coverage detected