package bap-std

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

An interface that a backend shall implement.

The functions provided by a loader return an OGRE document, wrapped into option and error monads, thus the three outcomes are possible with the following interpretation:

  • Ok None - a loader doesn't know how handle files of this type.
  • Ok (Some doc) - a loader was able to obtain some information from the input.
  • Error err - a file was corrupted, according to the loader.
val from_file : string -> Ogre.doc option Core_kernel.Or_error.t

from_file name loads a file with the given name.

from_data data loads image from the specified array of bytes.