A Codec encodes and (if supported) decodes data.
Codecs can be fused. For example fusing json and utf8 produces an encoder that can convert Json objects directly to bytes, or can decode bytes directly to json objects.
Fused codecs generally attempt to optimize the operations and can be faster than executing each step of an encoding separately.
this
, converting from T
to S
. [...] S
to T
. [...] this
. [...] encoded
data. [...] input
. [...] this
with other
. [...]
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-convert/Codec-class.html