-
Notifications
You must be signed in to change notification settings - Fork 4
Use with slices? #7
Comments
@joshlf Very cool, thank you! |
Is there any update regarding the topic? I need would like to transmute some struct to byte array and construct it from by trade for serial communication. is the zerocopy the only solution at this point? |
I don't believe typic is under active development. I'd check out the zerocopy or bytemuck crates. If you can describe in a bit more detail what you're trying to do, I can suggest specific APIs to look at. |
@joshlf
Would there be any equivalent solution with typic? Or would it be correct to use zerocopy in such purpose? |
What is the API of the |
@joshlf |
You're welcome! |
Is there a good way to use this with slices? I see that there are tests for arrays. Maybe by asserting the length at runtime, this becomes safe?
I'm interested in using typic to unsafe code in flatbuffers (some UB that was reported recently, so I'm on a hunt to remove all unsafe google/flatbuffers#5913).
The text was updated successfully, but these errors were encountered: