package tiny_libs

  1. Overview
  2. Docs
From-scratch libraries for teaching: graphics, audio, compression, crypto, networking and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/tiny_libs.networking_protocols/Wire/index.html

Module WireSource

Sourcetype writer
Sourceval to_bytes : (writer -> unit) -> string
Sourceval put_u8 : writer -> int -> unit
Sourceval put_u16 : writer -> int -> unit
Sourceval put_varint : writer -> int -> unit
Sourceval put_signed : writer -> int -> unit
Sourceval put_string : writer -> string -> unit
Sourcetype reader
Sourceval parse : (reader -> 'a) -> string -> ('a, string) result
Sourceval get_u8 : reader -> int
Sourceval get_u16 : reader -> int
Sourceval get_varint : reader -> int
Sourceval get_signed : reader -> int
Sourceval get_string : reader -> string
Sourceval fail : reader -> string -> 'a