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 opcode = _bits == 32 ? IDLTypeIds.Float32 : IDLTypeIds.Float64;
  return slebEncode(opcode);
}