We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As seen here https://github.com/ffi/ffi/wiki/Structs#pointers-to-functions if a function returns a pointer to a struct, it should use SomeStruct.by_ref as the return type. Otherwise, ffi returns an FFI::Pointer.
SomeStruct.by_ref
FFI::Pointer
The text was updated successfully, but these errors were encountered:
Agreed.
Sorry, something went wrong.
No branches or pull requests
As seen here https://github.com/ffi/ffi/wiki/Structs#pointers-to-functions if a function returns a pointer to a struct, it should use
SomeStruct.by_ref
as the return type. Otherwise, ffi returns anFFI::Pointer
.The text was updated successfully, but these errors were encountered: