MCPcopy Index your code
hub / github.com/RustPython/RustPython / read_i32

Function read_i32

crates/compiler-core/src/marshal.rs:983–986  ·  view source on GitHub ↗

Read a signed 32-bit LE integer.

(rdr: &mut R)

Source from the content-addressed store, hash-verified

981
982/// Read a signed 32-bit LE integer.
983pub fn read_i32<R: Read>(rdr: &mut R) -> Result<i32> {
984 let bytes = rdr.read_array::<4>()?;
985 Ok(i32::from_le_bytes(*bytes))
986}
987
988/// Read a TYPE_LONG arbitrary-precision integer (base-2^15 digits).
989pub fn read_pylong<R: Read>(rdr: &mut R) -> Result<BigInt> {

Callers 2

read_pylongFunction · 0.85
read_pstringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected