and3rson / foreigner

FFI library for Godot, built with GDNative
MIT License
25 stars 4 forks source link

[WIP] Add proof-of-concept PoolByteArray support #1

Open follower opened 4 years ago

follower commented 4 years ago

Add support for arguments of type PoolByteArray--this enables passing sequences of arbitrary bytes (including 0x00 which is not possible via the existing string support) as function arguments.

This implementation is primarily based on the existing String approach--so there may be approaches better suited to the specifics of how PoolByteArray is implemented.

Note: Currently there is no cleanup of the created objects, so this will leak memory.

Tracked by #2