package bap-strings

  1. Overview
  2. Docs
Text utilities useful in Binary Analysis and Reverse Engineering

Install

Dune Dependency

Authors

Maintainers

Sources

v2.5.0.tar.gz
sha256=9c126781385d2fa9b8edab22e62b25c70bf2f99f6ec78abb7e5e36d63cfa4174
md5=5abd9b3628b43f797326034f31ca574f

doc/bap-strings/Bap_strings_scanner/index.html

Module Bap_strings_scanner

val next : ?is_stop:(char -> bool) -> read:(int -> char option) -> int -> string

next ~is_stop ~read off reads characters starting with the offset off, using the read function to map offsets to characters, until the is_stop character occurs, or the read function returns None.

Postcondition: forall c in result, not (is_stop c)

val run : ?is_stop:(char -> bool) -> read:(int -> char option) -> int -> (int * string) Core_kernel.Sequence.t

scan ~is_stop ~read off applies next ~is_stop ~read for all offsets that are bigger than off until read off is not None. Returns a sequence of non-empty strings, paired with their corresponding offsets in data.

OCaml

Innovation. Community. Security.