encode function

List<int> encode(
  1. dynamic value
)

Implementation

List<int> encode(dynamic value) {
  final builder = LengthTrackingByteSink();
  _encodeToBuffer(value, builder);

  return builder.asBytes();
}