fast_gbk 0.1.1+1 copy "fast_gbk: ^0.1.1+1" to clipboard
fast_gbk: ^0.1.1+1 copied to clipboard

outdated

a fast gbk codec, support GBK encoding and decoding with stream api.

example/example.dart

import 'package:fast_gbk/fast_gbk.dart';
void main() async {
  // normal usage
  var encoded = gbk.encode("白日依山尽,黄河入海流");
  var decoded = gbk.decode([176, 215, 200, 213, 210, 192, 201, 189, 190, 161, 163,
                            172, 187, 198, 186, 211, 200, 235, 186, 163, 193, 247]);

  //output a �, instead of throw a exception.
  var codec = GbkCodec(allowMalformed: true);
  var decodedMalform = codec.decode([20001]);
}
15
likes
0
pub points
92%
popularity

Publisher

unverified uploader

a fast gbk codec, support GBK encoding and decoding with stream api.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on fast_gbk