For my game engine I'm trying to bind my VFS to AngelScript.
From what I've read, there's no direct equivalent to the C++:
void*So before I try anything else I thought I'd ask here.
These are the two C++ member functions that I want to bind:
bool Write(const void* buffer, size_t bytes);
bool Read(void* buffer, size_t bytes);
I know you can do a uint8 array but I feel like that is a bit clunky.
Some relevant links to the source:
https://github.com/Cattle-Engine/Runtime/blob/main/include/engine/common/fs/file_provider.hpp
https://github.com/Cattle-Engine/Runtime/blob/main/include/engine/scripting/bindings/vfs/as_ifile.hpp
https://github.com/Cattle-Engine/Runtime/blob/main/include/engine/common/fs/vfs.hpp
(EDIT: Modified to remove the Markdown style code blocks)