archive icon indicating copy to clipboard operation
archive copied to clipboard

Use the dart:convert Codec and Converter interfaces

Open brendan-duncan opened this issue 11 years ago • 8 comments

Encoder and Decoder classes would be derived from Converter, and a Codec class should be provided to combine the two, following the pattern used by the json, utf8, etc converters. https://api.dartlang.org/apidocs/channels/stable/#dart-convert.Codec@id_encode

brendan-duncan avatar Feb 18 '14 23:02 brendan-duncan

I think this would be a relatively simple fix; may I submit a PR? (I plan to send quite a few, so beware)

thosakwe avatar Aug 12 '17 15:08 thosakwe

Hi, yes, I accept pull requests. Thank you!

On Sat, Aug 12, 2017, 8:04 AM Tobe O [email protected] wrote:

I think this would be a relatively simple fix; may I submit a PR? (I plan to send quite a few, so beware)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brendan-duncan/archive/issues/4#issuecomment-321986777, or mute the thread https://github.com/notifications/unsubscribe-auth/ADeS863maq9gulHYhJy3S8lDbfAFJPF1ks5sXb76gaJpZM4Bi-5L .

brendan-duncan avatar Aug 12 '17 16:08 brendan-duncan

Cool. I'd like to help you resolve all the outstanding issues, but I'd also like to see this package reach a 2.0, because it seems like a lot of changes are due.

thosakwe avatar Aug 12 '17 18:08 thosakwe

That's great, I really appreciate the help. My time for dart programming has been pretty non existent for a while. The biggest remaining issue architecture wise is the ability to stream to/from disk with minimal memory overhead, so that systems like pub can use it.

On Sat, Aug 12, 2017, 11:27 AM Tobe O [email protected] wrote:

Cool. I'd like to help you resolve all the outstanding issues, but I'd also like to see this package reach a 2.0, because it seems like a lot of changes are due.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brendan-duncan/archive/issues/4#issuecomment-321997905, or mute the thread https://github.com/notifications/unsubscribe-auth/ADeS8yOdE15ytAeyOeOYgv3iHuuNaR_yks5sXe5_gaJpZM4Bi-5L .

brendan-duncan avatar Aug 12 '17 18:08 brendan-duncan

I'll try to get this in within this coming week.

thosakwe avatar Aug 16 '17 00:08 thosakwe

Any updates on this? Looks like this would also allow streamed encoding / decoding which would be quite important for archiving on UI thread in Flutter.

pulyaevskiy avatar Nov 21 '18 19:11 pulyaevskiy

This would be a great addition, specifically due to the fusing functionality. There's a detailed walkthrough of the Codec and Converter system on dart.dev.

hacker1024 avatar Dec 23 '20 06:12 hacker1024

Hi guys! Any updates on this issue?

darkstarx avatar Nov 14 '23 18:11 darkstarx