decoder abstract method

ContentDecoder decoder(
  1. Content builder, {
  2. Endian? endian,
  3. Map<String, dynamic>? options,
})

Returns a binary format decoder that decodes bytes as Content to builder.

Content decoded by a decoder is sent to a content interface represented by an object builder.

An optional endian specifies endianness for byte sequences read. Some decoders might ignore this, and some resolve it by reading data to be decoded.

Other format or decoder implementation specific options can be set by options.

Implementation

ContentDecoder decoder(
  Content builder, {
  Endian? endian,
  Map<String, dynamic>? options,
});