Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DirectMyFile/msgpack.dart
MsgPack for Dart
https://github.com/DirectMyFile/msgpack.dart
Last synced: 18 days ago
JSON representation
MsgPack for Dart
- Host: GitHub
- URL: https://github.com/DirectMyFile/msgpack.dart
- Owner: DirectMyFile
- License: other
- Created: 2015-11-14T18:24:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-18T15:45:26.000Z (over 5 years ago)
- Last Synced: 2024-07-31T18:15:44.367Z (3 months ago)
- Language: Dart
- Size: 80.1 KB
- Stars: 6
- Watchers: 5
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-dart - msgpack - MsgPack for Dart.[<img src="https://travis-ci.org/DirectMyFile/msgpack.dart.svg?branch=master">](https://travis-ci.org/DirectMyFile/msgpack.dart) (Libraries / Encoding)
README
# MsgPack for Dart
*Notice: This library has not been updated to Dart 2. Please see https://pub.dartlang.org/packages/msgpack_dart*
A full-featured MsgPack library for Dart.
## Simple Example
```dart
import "dart:typed_data";import "package:msgpack/msgpack.dart";
main() {
var binary = new Uint8List.fromList(
new List.generate(40, (int i) => i)
).buffer.asByteData();var data = {
"String": "Hello World",
"Integer": 42,
"Double": 45.29,
"Integer List": [1, 2, 3],
"Binary": binary,
"Map": {
1: 2,
3: 4
}
};List packed = pack(data);
Map unpacked = unpack(packed);print(unpacked);
}
```