You are looking at historical revision 29428 of this page. It may differ significantly from its current revision.
msgpack
Author
Hugo Arregui
Requirements
Description
A MessagePack implementation for scheme.
API
Pack
[procedure] (pack PORT VALUE)This procedure will call primitive type packers, with the following rules:
- if the VALUE has a packer, apply it.
- if the VALUE is a string, it will be packed as raw.
- if the VALUE is a blob, it will be packed as raw.
- if the VALUE is a char, it will be packed as a uint.
- if the VALUE is a list, it will be packed as an array.
[procedure] (pack-sint PORT VALUE)
[procedure] (pack-float PORT VALUE)
[procedure] (pack-double PORT VALUE)
[procedure] (pack-raw PORT VALUE)
[procedure] (pack-array PORT VALUE)
[procedure] (pack-map PORT VALUE)
Unpack
[procedure] (unpack PORT [MAPPER identity])Mappers
[procedure] (raw->string/mapper VALUE)License
BSD