extism / dotnet-pdk

Extism Plug-in Development Kit (PDK) for C# and F#
https://extism.org
BSD 3-Clause "New" or "Revised" License
41 stars 6 forks source link

Returning byte array from plugin function #73

Closed ur-fault closed 7 months ago

ur-fault commented 7 months ago

Hi, I need to return byte buffer from the function, it doesn't matter whether it's allocated by extism or my plugin.

image

When I tried just to return byte[], it responded with error above.

ur-fault commented 7 months ago

I'm very sorry, I misunderstood how return values work.

mhmd-azeez commented 7 months ago

No worries :) feel free to let us know if you have any questions