You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So instead of reading and writing to a byte slice you would read and write to/from a stream in the trait implementations already?
And when you really need it as a byte array locally, you can still create some internal/fake stream.
Not sure, if there's already a standard way of doing this, but I'd assume, there is.
In most cases, I either want to (de)serialize it to/from a network or file stream. When sending it to GPU, it might be necessary to have byte arrays, though.
This feature exists in the bincode crate, which simplifies reading from and writing to streams (like TCP) more comfortable.
The text was updated successfully, but these errors were encountered: