Skip to content

How to serialize a 3rd party container? #300

Answered by csnover
magras asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, and thanks for your question! If the third-party container can be converted to a slice, then it can be written by e.g. #[bw(map = |c| &c[..])], which will then use binrw’s built-in write implementation for slices.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@magras
Comment options

@csnover
Comment options

csnover Nov 27, 2024
Collaborator

@magras
Comment options

Answer selected by magras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants