You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opus offers x_get_size and x_init functions that can be used to use an allocator other than C's malloc. Because this binding is intended for use by Rust hosts, using Rust's allocator is preferred over letting C malloc, when feasible.
Biggest caveat: C malloc has byzantine alignment guarantees, stricter on some platforms than Vec<usize> allows. Probably opus won't require greater than usize alignment, but it's better to be on the safe side.
The text was updated successfully, but these errors were encountered:
Opus offers
x_get_size
andx_init
functions that can be used to use an allocator other than C's malloc. Because this binding is intended for use by Rust hosts, using Rust's allocator is preferred over letting C malloc, when feasible.Biggest caveat: C malloc has byzantine alignment guarantees, stricter on some platforms than
Vec<usize>
allows. Probably opus won't require greater thanusize
alignment, but it's better to be on the safe side.The text was updated successfully, but these errors were encountered: