dicom-rs icon indicating copy to clipboard operation
dicom-rs copied to clipboard

[encoding] Extend TextCodec with decode_to and encode_to

Open Enet4 opened this issue 2 years ago • 1 comments

This extends the TextCodec trait to also have encode_to and decode_to methods, which take a heap allocated buffer value instead of returning a new one. This makes it possible to reduce the number of allocations needed in some cases.

It is a breaking change because the trait is not sealed and implementations are required to provide definitions for these new methods.

Enet4 avatar Sep 14 '22 20:09 Enet4

I will put this on hold until attempts are made to integrate with new text encoding libraries.

Enet4 avatar Jun 07 '23 20:06 Enet4

Closing because I'm not sure this is the right direction for text encoding/decoding, and it's gone far behind by other changes.

Enet4 avatar Apr 13 '24 09:04 Enet4