package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.19.1.tar.gz
md5=13d2793fc6413aac5168822313e4864e
sha512=ec8379df34ba6e72bcf0218c66fef248b0e4c5c436fb3f2d7dd83a2c5f349dd0874a67484fcf9c0df3e5d5937d7ae2b2a79274725595b4b0065a381f70769b42

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

Module ObjFileSource

Sourceval magic_number : int32
Sourcetype 'a segment = private {
  1. name : string;
  2. pos : int64;
  3. len : int64;
  4. hash : Digest.t;
}
Sourcetype 'a id = private {
  1. id : string;
}

Private to ensure the phantom tag is injective

Sourcetype in_handle
Sourcetype out_handle
Sourceval make_id : string -> 'a id
Sourceval open_in : file:string -> in_handle
Sourceval close_in : in_handle -> unit
Sourceval marshal_in_segment : in_handle -> segment:'a id -> 'a * Digest.t
Sourceval get_segment : in_handle -> segment:'a id -> 'a segment
Sourceval open_out : file:string -> out_handle
Sourceval close_out : out_handle -> unit
Sourceval marshal_out_segment : out_handle -> segment:'a id -> 'a -> unit
Sourceval marshal_out_binary : out_handle -> segment:'a id -> 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.