package orsetto
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=6e6f59fc6a2c590b1b377e40f2120a548e6f09e61e7eb12ffa45cf2d517316b8
md5=533153cd4a9fe8093d3b98afc1073bc8
doc/orsetto.cf/Cf_base64/Mime/index.html
Module Cf_base64.Mime
The "base64" encoding for MIME content. Pad characters are mandatory. All non-alphabet characters are ignored.
val basis : Cf_radix_n.basis
The basis of the transform.
Use decode_seq s
to decode the digits in s
according to the rules for the transform. Evaluating the result raises Error
if an error in the encoding is encountered. Optionally use ~n
to specify the required length of the decoded octets, raising Error
if the end of s
is not found immediately following the last digit in the encoding.
Use decode_string s
to decode the digits in s
according to the rules for the transform. Returns None
if an error is encountered. Optionally use ~n
to specify the required length of the decoded octets.
val decode_slice : ?n:int -> string Cf_slice.t -> string option
Use decode_slice s
to decode the digits in s
according to the rules for the transform. Returns None
if an error is encountered. Optionally use ~n
to specify the required length of the decoded octets.
Use encode_seq s
to encode the octets in s
according to the rules for the transform. Use ~brk:(n, s)
to insert s
every n
digits. Use ~np:()
to disable output of pad characters. If pad characters are mandatory for the transform, then using ~np:()
raises Invalid_argument
.
Use encode_string s
to encode the octets in s
according to the rules for the transform. Use ~brk:(bn, bs)
to insert bs
every bn
digits. Use ~np:()
to disable output of pad characters. If pad characters are mandatory for the transform, then using ~np:()
raises Invalid_argument
.
val encode_slice :
?brk:(int * string) ->
?np:unit ->
string Cf_slice.t ->
string
Use encode_slice s
to encode the octets in s
according to the rules for the transform. Use ~brk:(bn, bs)
to insert bs
every bn
digits. Use ~np:()
to disable output of pad characters. If pad characters are mandatory for the transform, then using ~np:()
raises Invalid_argument
.