char*. There are very few hints on how is one supposed to handle such returns.extern char* searchByDinoSpecies(char* dinosaursString, char* species);dinosaurString to be a JSON string or a YAML string, idk. Whatever your compiled C-grandson language lets you handlepointer type in parameters: [] when loading my dylib because I'll get a TypeError: Invalid FFI pointer type, expected null, or Externalbuffer type accepts TypedArrays as parameter, but it always returns a pointer object or null when used as result type like the pointer type.
buffer should work? Well, both parameters sure work when setting buffer but another problem arises. The output, either pointer or buffer is completely useless.