char*char*. There are very few hints on how is one supposed to handle such returns.extern char* searchByDinoSpecies(char* dinosaursString, char* species);extern char* searchByDinoSpecies(char* dinosaursString, char* species);dinosaurStringdinosaurString to be a JSON string or a YAML string, idk. Whatever your compiled C-grandson language lets you handlepointerpointer type in parameters: []parameters: [] when loading my dylibdylib because I'll get a TypeError: Invalid FFI pointer type, expected null, or ExternalTypeError: 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.
bufferbuffer should work? Well, both parameters sure work when setting bufferbuffer but another problem arises. The output, either pointerpointer or bufferbuffer is completely useless.
Join the Discord to ask follow-up questions and connect with the community