Module Lreader

module Lreader: sig .. end
Basic stream reader

type bytestream 
type t 
val of_img : ?cursor:int -> Loader.Img.t -> t
val of_nibbles : ?cursor:int -> ?base:int -> string -> t
val of_bytes : ?cursor:int -> ?base:int -> string -> t
val of_binstream : ?cursor:int -> ?base:int -> Basic_types.Binstream.t -> t
val pp : Format.formatter -> t -> unit
val set_virtual_cursor : t -> int -> unit
val get_virtual_cursor : t -> int
val rewind : t -> int -> unit
rewind r n moves back the cursor n bytes.
val advance : t -> int -> unit
advance r n moves the cursor the cursor n bytes.

Read functions

module type Accessor = sig .. end
module Read: Accessor  with type t:=t
Accessor functions of module Read read n=1, 2, 4, or 8 bytes and advance n bytes as well.
module Peek: Accessor  with type t:=t
Peek is like Read but does not advance
val get_slice : t -> int -> int -> int list