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

Function read_until_comma

src/pgwire/src/codec.rs:605–614  ·  view source on GitHub ↗
(buf: &mut Cursor)

Source from the content-addressed store, hash-verified

603}
604
605fn read_until_comma(buf: &mut Cursor) -> Result<Vec<u8>, io::Error> {
606 let mut v = Vec::new();
607 while let Ok(b) = buf.peek_byte() {
608 if b == b',' {
609 break;
610 }
611 v.push(buf.read_byte()?);
612 }
613 Ok(v)
614}
615
616// All SASL parsing is based on RFC 5802, [section 7](https://datatracker.ietf.org/doc/html/rfc5802#section-7)
617

Callers 2

decode_sasl_responseFunction · 0.85

Calls 3

peek_byteMethod · 0.80
read_byteMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected