package coq

  1. Overview
  2. Docs
Formal proof management system

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.15.2.tar.gz
sha256=13a67c0a4559ae22e9765c8fdb88957b16c2b335a2d5f47e4d6d9b4b8b299926

doc/coq-core.lib/ObjFile/index.html

Module ObjFileSource

Sourceval magic_number : int32
Sourcetype segment = {
  1. name : string;
  2. pos : int64;
  3. len : int64;
  4. hash : Digest.t;
}
Sourcetype in_handle
Sourcetype out_handle
Sourceval open_in : file:string -> in_handle
Sourceval close_in : in_handle -> unit
Sourceval marshal_in_segment : in_handle -> segment:string -> 'a * Digest.t
Sourceval get_segment : in_handle -> segment:string -> segment
Sourceval open_out : file:string -> out_handle
Sourceval close_out : out_handle -> unit
Sourceval marshal_out_segment : out_handle -> segment:string -> 'a -> unit
Sourceval marshal_out_binary : out_handle -> segment:string -> out_channel * (unit -> unit)

marshal_out_binary oh segment is a low level, stateful, API returning oc, stop. Once called no other API can be used on the same oh and only Stdlib.output_* APIs should be used on oc. stop () must be invoked in order to signal that all data was written to oc (which should not be used afterwards). Only after calling stop the other API can be used on oh.

OCaml

Innovation. Community. Security.