encode method

  1. @override
Uint8List encode(
  1. Object value
)
override

Implementation

@override
Uint8List encode(Object value) {
  if (value is! Uint8List) {
    throw Exception('Expected Uint8List value for FunctionType');
  }
  if (value.lengthInBytes != 24) {
    throw Exception('Invalid size for FunctionType');
  }
  return super.encode(Uint8List.fromList(value + Uint8List(8)));
}