zetzit / zz

πŸΊπŸ™ ZetZ a zymbolic verifier and tranzpiler to bare metal C
MIT License
1.6k stars 52 forks source link

Move 'mem' field member in 'Slice' to first position #71

Closed jwerle closed 4 years ago

jwerle commented 4 years ago

hey @aep, I hope all is well. What are your thoughts on moving the mem field to the first position for the Slice struct? This would line up with structures like struct iovec and others.

The main use case would be casting a Slice to struct iovec or uv_buf_t.

aep commented 4 years ago

that's a really good idea

jwerle commented 4 years ago

cool I issued a PR :upside_down_face: