Skip to main content

parse_offset

Function parse_offset 

Source
pub fn parse_offset(text: &str, cursor: u64, len: u64) -> Result<u64, String>
Expand description

Where a typed offset points: decimal, 0x hex, +N and -N from the cursor, and e-N from the end (e-1 is the last byte). Past either end is an error.