#How to save to binary instead of json Serde
10 messages · Page 1 of 1 (latest)
you use a different format
Serde
any recommendations?
Bincode is a crate for encoding and decoding using a tiny binary serialization strategy. Using it, you can easily go from having an object in memory, quickly serialize it to bytes, and then deserialize it back just as fast!
but what do you mean with "i'm saving images to it"
so I have an array of lets say Cows, and each cow has an image raw Vec<u8>, rgba format
and im saving that array to a file
You want to save it as some specific format like JPG?