Skip to content
New issue

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

[Rust] Documentation for Reader::get_slice points at align_to, which doesn't seem to exist #8448

Open
mstange opened this issue Dec 12, 2024 · 0 comments

Comments

@mstange
Copy link

mstange commented Dec 12, 2024

Hi all,

I'm trying to understand how to get array data out of a Flexbuffer in Rust without copies. There is a deprecated get_slice method: https://docs.rs/flexbuffers/2.0.0/flexbuffers/struct.Reader.html#method.get_slice

However, this method is deprecated, with the annotation "👎Deprecated since 0.3.0: This function is unsafe - if this functionality is needed use Reader::buffer::align_to"

What is this referring to? Searchingalign_to in the docs doesn't turn up anything: https://docs.rs/flexbuffers/2.0.0/flexbuffers/struct.Reader.html?search=align_to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant