mbrobbel commented on issue #405:
URL: https://github.com/apache/arrow-go/issues/405#issuecomment-2981806511

   
https://github.com/apache/arrow-rs/blob/3837ac01dcc25ded91bd1e42221f3a9396051841/arrow-integration-testing/src/lib.rs#L190
 always returns a "valid" struct (which has 
[`[repr(C)]`](https://doc.rust-lang.org/nomicon/other-reprs.html#reprc)). This 
struct is then written to the given `out` pointer here 
https://github.com/apache/arrow-rs/blob/3837ac01dcc25ded91bd1e42221f3a9396051841/arrow-integration-testing/src/lib.rs#L192.
 Note that this requires `unsafe` because it's UB if the given pointer is not 
valid for writes or misaligned 
(https://doc.rust-lang.org/stable/std/ptr/fn.write.html#safety).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to