encode method

Uint8List encode(
  1. E value
)

Convert self to an owned vector.

Implementation

Uint8List encode(E value) {
  final bytes = ByteOutput();
  encodeTo(value, bytes);
  return bytes.toBytes();
}