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

Function decode_auth

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

Source from the content-addressed store, hash-verified

583}
584
585fn decode_auth(mut buf: Cursor) -> Result<FrontendMessage, io::Error> {
586 let mut value = Vec::new();
587 while let Ok(b) = buf.read_byte() {
588 value.push(b);
589 }
590 Ok(FrontendMessage::RawAuthentication(value))
591}
592
593fn expect(buf: &mut Cursor, expected: &[u8]) -> Result<(), io::Error> {
594 for i in 0..expected.len() {

Callers 1

decodeMethod · 0.85

Calls 2

read_byteMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected