encodeType method

  1. @override
Uint8List encodeType(
  1. TypeTable? typeTable
)
override

Implement I in the IDL spec. Encode this type for the type table.

Implementation

@override
Uint8List encodeType(TypeTable? typeTable) {
  final offset = log2(_bits) - 3;
  return slebEncode(-9 - offset);
}