MCPcopy Create free account
hub / github.com/erans/pgsqlite / encode_command_complete

Function encode_command_complete

src/protocol/codec.rs:294–302  ·  view source on GitHub ↗
(tag: &str, dst: &mut BytesMut)

Source from the content-addressed store, hash-verified

292}
293
294fn encode_command_complete(tag: &str, dst: &mut BytesMut) {
295 dst.put_u8(b'C');
296 let len_pos = dst.len();
297 dst.put_i32(0); // Placeholder
298
299 put_cstring(dst, tag);
300
301 update_message_length(dst, len_pos);
302}
303
304fn encode_empty_query_response(dst: &mut BytesMut) {
305 dst.put_u8(b'I');

Callers 1

encodeMethod · 0.85

Calls 3

put_cstringFunction · 0.85
update_message_lengthFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected