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
I'd like to use base64 as a Writer, so that I can use a serde serializer followed by base64, without an intermediate buffer. However, base64::write::EncoderWriter always wraps another Writer. I'd like to get a String out, so that I have a type-level guarantee of valid UTF-8 (which base64 will always produce). Would you consider adding a base64::write::StringWriter that writes to a String, and returns that string from finish()?
The text was updated successfully, but these errors were encountered:
@marshallpierce Yes, that looks great! I left one comment there, about avoiding a copy of the data, but otherwise that would work perfectly for my use case.
I'd like to use base64 as a
Writer
, so that I can use a serde serializer followed by base64, without an intermediate buffer. However,base64::write::EncoderWriter
always wraps anotherWriter
. I'd like to get aString
out, so that I have a type-level guarantee of valid UTF-8 (which base64 will always produce). Would you consider adding abase64::write::StringWriter
that writes to aString
, and returns that string fromfinish()
?The text was updated successfully, but these errors were encountered: