For my use, i figured out I only need your custom "findFree" object.
The first thing I have done is to replace the header include with "ff.h".
Then I added an int32 outlet (called amount) and declared in the K-rate Code: "outlet_amount=cnt;".
I do not use any of the other inlet or outlet functions at the moment. I may try to delete the function I don't use to save Ram, but it may take me some time to understand what part of the code is relevant to my use and what part is not.