Read a 4-byte-length-prefixed byte string.
(rdr: &mut R)
| 1023 | |
| 1024 | /// Read a 4-byte-length-prefixed byte string. |
| 1025 | pub fn read_pstring<R: Read>(rdr: &mut R) -> Result<&[u8]> { |
| 1026 | let n = read_i32(rdr)?; |
| 1027 | if n < 0 { |
| 1028 | return Err(MarshalError::InvalidBytecode); |
| 1029 | } |
| 1030 | rdr.read_slice(n as u32) |
| 1031 | } |
| 1032 | |
| 1033 | const CO_FAST_LOCAL: u8 = 0x20; |
| 1034 | const CO_FAST_CELL: u8 = 0x40; |
nothing calls this directly
no test coverage detected