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
In order to support Truffleruby on magnus, we need to support struct operations, which currently relies on cruby internals.
/// Defines a struct type with the given name and members.////// # Example/// fnrstruct_define(&self,name:&CStr,members:&[&CStr]);/// Accesses an indexed member of the struct.////// # Safety/// This function is unsafe because it dereferences a raw pointer to get/// access to underlying struct data. The caller must ensure that the/// `VALUE` is a valid pointer to a struct.unsafefnrstruct_get(&self,st:VALUE,idx:c_int) -> VALUE;/// Sets an indexed member of the struct.////// # Safety/// This function is unsafe because it dereferences a raw pointer to get/// access to underlying struct data. The caller must ensure that the/// `VALUE` is a valid pointer to a struct.unsafefnrstruct_set(&self,st:VALUE,idx:c_int,value:VALUE);/// Returns the number of struct members.////// # Safety/// This function is unsafe because it dereferences a raw pointer to get/// access to underlying struct data. The caller must ensure that the/// `VALUE` is a valid pointer to an RStruct.unsafefnrstruct_len(&self,obj:VALUE) -> c_long;
The text was updated successfully, but these errors were encountered:
In order to support Truffleruby on magnus, we need to support struct operations, which currently relies on cruby internals.
The text was updated successfully, but these errors were encountered: