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

Method read_u32

src/pgwire-common/src/codec.rs:312–319  ·  view source on GitHub ↗

Reads the next 32-bit unsigned integer, advancing the cursor by four bytes.

(&mut self)

Source from the content-addressed store, hash-verified

310 /// Reads the next 32-bit unsigned integer, advancing the cursor by four
311 /// bytes.
312 pub fn read_u32(&mut self) -> Result<u32, io::Error> {
313 if self.buf.len() < 4 {
314 return Err(input_err("not enough buffer for an Int32"));
315 }
316 let val = NetworkEndian::read_u32(self.buf);
317 self.advance(4);
318 Ok(val)
319 }
320
321 /// Reads the next 16-bit format code, advancing the cursor by two bytes.
322 pub fn read_format(&mut self) -> Result<Format, io::Error> {

Callers 2

decode_parseFunction · 0.80
decode_startupFunction · 0.80

Calls 3

input_errFunction · 0.85
lenMethod · 0.45
advanceMethod · 0.45

Tested by

no test coverage detected