encode method

Uint8List encode(
  1. G input, {
  2. RdfBinaryEncoderOptions? options,
})
override

Encodes an RDF data structure to binary.

Convenience method that delegates to the codec's encoder, optionally applying the given options.

Implementation

Uint8List encode(
  G input, {
  RdfBinaryEncoderOptions? options,
}) {
  return (options == null ? encoder : encoder.withOptions(options))
      .convert(input);
}