package gendarme

  1. Overview
  2. Docs
Libraries to marshal OCaml data structures

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.4.1.tar.gz
md5=6ec9736fbf27fad0ec177abb9d7b4131
sha512=df687c949cb920efe40fabfc298a81752a15ed531efd410be80346a1d34227f33883bfd142d643f53ca37c7d169084014b67be4e6acab1b78a2bf981b1cbf775

doc/gendarme/Gendarme/module-type-S/index.html

Module type Gendarme.SSource

Encoder signature

include M
Sourcetype t

The internal encoder type

Sourceval unpack : target -> t

Unpack an internal value

Sourceval pack : t -> target

Pack an internal value

Sourceval marshal : ?v:'a -> 'a ty -> t

Marshal a value

Sourceval unmarshal : ?v:t -> 'a ty -> 'a

Unmarshal a value

Sourceval marshal_safe : ?v:'a -> 'a ty -> t

Marshal a value in an way safe for the encoder

Sourceval unmarshal_safe : ?v:t -> 'a ty -> 'a

Unmarshal a value in a way safe for the encoder

The encoder type representation

Sourceval encode : ?v:'a -> 'a ty -> string

Encode a value into a string representation

Sourceval decode : ?v:string -> 'a ty -> 'a

Decode a value from its string representation