adamlofts / leveldb_dart

Dart bindings for the LevelDB key value store.
MIT License
24 stars 5 forks source link

Consider replacing LevelEncoding with dart.convert.Converter #7

Closed adamlofts closed 7 years ago

adamlofts commented 7 years ago

The dart core libraries come with a converter interface for example the Utf8Encoder is defined like:

class Utf8Encoder extends Converter<String, List<int>>

LevelEncoding is expressing the same thing so it may make sense to transition to Converter<UInt8List, String> for example.