package metadata

  1. Overview
  2. Docs

Module OGG.RSource

Sourcetype t = {
  1. read : bytes -> int -> int -> int;
  2. seek : int -> unit;
  3. size : unit -> int option;
  4. reset : unit -> unit;
}

A function to read taking the buffer to fill the offset and the length and returning the number of bytes actually read.

Sourceval retry : ('a -> int -> int -> int) -> 'a -> int -> int -> int

Make a reading function retry until buffer is filled (or an error occurs).

Sourceval read : t -> int -> string
Sourceval drop : t -> int -> unit
Sourceval byte : t -> int
Sourceval uint8 : t -> int
Sourceval int16_be : t -> int
Sourceval int16_le : t -> int
Sourceval uint16_le : t -> int
Sourceval int16 : Metadata__.MetadataBase.endianness -> t -> int
Sourceval int32_le : t -> int
Sourceval uint32_le : t -> int
Sourceval int32_be : t -> int
Sourceval size : t -> int option
Sourceval reset : t -> unit

Go back at the beginning of the stream.

Sourceval with_file : (t -> 'a) -> string -> 'a
OCaml

Innovation. Community. Security.