Read a signed 32-bit LE integer.
(rdr: &mut R)
| 981 | |
| 982 | /// Read a signed 32-bit LE integer. |
| 983 | pub 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). |
| 989 | pub fn read_pylong<R: Read>(rdr: &mut R) -> Result<BigInt> { |
no outgoing calls
no test coverage detected