Miscellaneous small-ish bits of Dart code. It's mostly for my own use, but you're welcome to it. Please attribute it if you do, e.g. with a link to https://jovial.com/bill.html. Offered under the MIT license.

Created from templates made available by Stagehand under a BSD-style license.


A simple usage example:

import 'package:convert/convert.dart';
import 'package:jovial_misc/io_utils.dart';

void main() async {
  final acc = ByteAccumulatorSink();
  final out = DataOutputSink(acc);
  out.writeUTF8('Hello, world.');

  final stream = Stream<List<int>>.fromIterable([acc.bytes]);
  final dis = DataInputStream(stream);
  print(await dis.readUTF8());
  await dis.close();

Features and bugs

Please file feature requests and bugs at the issue tracker.


Miscellaneous I/O utilities.
Support for running a generator function in a separate Isolate, with flow control. [...]