decodeBytes abstract method
Decodes bytes from source
as content objects.
The source
as a sequence of bytes is expected to be a valid binary
representation of content for a binary format decoder, and an UTF8 encoded
binary representation of textual content for a text format decoder.
The target of objects decoded from bytes is not defined by this interface. A decoder could produce content objects sent to a content interface or build structured data objects with compatible model. Also some decoders might allow multiple calls to this method to build a larger target object structure.
Throws FormatException
if decoding fails.
Implementation
void decodeBytes(Uint8List source);