https://github.com/refi64/z85.dart
A z85 codec for Dart
https://github.com/refi64/z85.dart
Last synced: 5 months ago
JSON representation
A z85 codec for Dart
- Host: GitHub
- URL: https://github.com/refi64/z85.dart
- Owner: refi64
- License: bsd-2-clause
- Created: 2019-01-11T20:19:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-11T21:06:44.000Z (over 7 years ago)
- Last Synced: 2025-03-25T05:06:48.486Z (about 1 year ago)
- Language: Dart
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# z85
A [z85](https://rfc.zeromq.org/spec:32/Z85/) encoder and decoder. Implements the full
`dart:convert` [Codec](https://api.dartlang.org/stable/2.1.0/dart-convert/Codec-class.html) API.
## Usage
*z85* can be used just like all the `dart:convert` codecs (e.g. base64):
```dart
import 'package:z85/z85.dart';
void main() {
final testBytes = [0x86, 0x4F, 0xD2, 0x6F, 0xB5, 0x59, 0xF7, 0x5B];
final testString = 'HelloWorld';
assert(z85.encode(testBytes) == testString);
assert(z85.decode(testString) == testBytes);
}
```
Chunked conversions are also supported, again by following the same API. See the API docs
for more information.
## Links
- [GitHub.](https://github.com/kirbyfan64/z85.dart)
- [Pub.](https://pub.dartlang.org/packages/z85)
- [API docs.](https://pub.dartlang.org/documentation/z85/latest/)