1. Only showing results from lib.rs

    Clear filter to show all search results

  2. Jan 15, 2025This library takes care of mapping these to byte offsets (UTF-8) and loading the corresponding excerpt of the file from disk into memory. We call such an excerpt a text frame. Multiple discontinuous or partially overlapping text-frames might be loaded. Frames are only loaded from disk if no already loaded frame covers the offsets.
  3. FLAGS:-b,--byte-offset Prints the byte offset of each match-l,--files-with-matches Prints the name of the matched files (default output mode)-L,--files-without-matches Prints the name of non-matched files --help Prints help information -i,--ignore-case Case insensitive matching for ASCII alphabetic characters -v,--invert-match Invert the sense ...
  4. Jan 8, 2025(reference.offset(), 12); This would result in the following buffer: 0000: "Hello World!" // Might get padded to ensure that the size is aligned by 4 bytes. 0012: offset -> 0000 0016: size -> 12 What we see at offset 0016 is an 8 byte Ref<str>. The first field stores the offset where to fetch the string, and the second field the length of the ...
  5. Jul 31, 2024# byte-offset # line-column # offset # byte-stream # numbers # io-read # converter stream-locate-converter A Stream reader which can convert between byte offset and line-column numbers. Support any type which implements io::Read. Owned by ireina7. Install; API reference; GitHub repo
  6. [default: 0]-d,--dst-offset <dst_offset> The byte offset in the destination file to start writing to. Must not be larger than the file in question, and the file must exist. [default: 0]-c,--count <count> The number of bytes to copy. Defaults to "all of them", from the `src-offset` to the end of the file. Asking to read past the end of the ...
  7. Jan 20, 20251,790 downloads per month Used in 6 crates (4 directly). MIT license . 13KB 223 lines. line-numbers . line-numbers is a Rust crate for efficiently finding the line number of a string offset. Usage. Create a LinePositions, then you can find line numbers for an offset.. let s = "foo\nbar\nbaz\n"; let s_lines: Vec<_> = s.lines().collect(); let line_positions = LinePositions::from(s); let offset ...
  8. Can’t find what you’re looking for?

    Help us improve DuckDuckGo searches with your feedback

Custom date rangeX