MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / decode_password

Function decode_password

src/pgwire/src/codec.rs:801–805  ·  view source on GitHub ↗
(mut buf: Cursor)

Source from the content-addressed store, hash-verified

799}
800
801pub fn decode_password(mut buf: Cursor) -> Result<FrontendMessage, io::Error> {
802 Ok(FrontendMessage::Password {
803 password: buf.read_cstr()?.to_owned(),
804 })
805}
806
807fn decode_query(mut buf: Cursor) -> Result<FrontendMessage, io::Error> {
808 Ok(FrontendMessage::Query {

Callers 1

Calls 2

read_cstrMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected