-
Notifications
You must be signed in to change notification settings - Fork 1
Home
uupaa edited this page Apr 19, 2015
·
23 revisions
MessagePack.js は MessagePack の JavaScript 実装です。
最新の MessagePack の仕様に追従しています
| msgpack.js | Codec.MessagePack | |
|---|---|---|
| MessagePack spec version | 2010 | 2013 |
| FIX_INT, INT8 - INT64 | YES | YES |
| FIX_UINT, UINT8 - UINT64 | YES | YES |
| Null(nil), Boolean, Infinity | YES | YES |
| FIX_MAP, MAP32, MAP64 | YES | YES |
| FIX_ARRAY, ARRAY64, ARRAY64 | YES | YES |
| FIX_STR, STR8 - STR32 | YES (except STR8) |
YES |
| BIN8 - BIN32 | NO | YES (BIN as Uint8Array) |
| FIX_EXT, EXT8 - EXT32 | NO | YES |
| user defined EXT type handler options.pack, unpack |
NO | YES |
| run on Browser | YES | YES |
| run on WebWorkers | NO | YES |
| run on Node.js | NO | YES |
| run on node-webkit | NO | YES |
| UNICODE Surrogate Pairs | NO | YES |
| Closure Compiler ADVANCED_OPTIMIZATIONS compat |
NO | YES |
| Encode and Decode Speed | Slowly | Quickly |
MessagePack#encode の options.pack と MessagePack#decode の options.unpack に関数を指定することで、ユーザが独自に定義した型を処理できます。
この機能により、MessagePack が直接的にサポートしていない型であってもエンコードとデコードが可能になります。