Hello, What is the recommended way to store binary data in const classes? Looks like the only option for now is to use Buf.toBase64 and Buf.fromBase64 and store data as Str.
brianTue 23 Feb 2010
Right now there isn't any other good way other than using String. If you can keep it private you could reference it with an Unsafe.
Originally I had planned to make Buf support toImmutable like List and Map do, but it was a lot trickier than I expected since Buf is essentially an IO class.
ivanTue 23 Feb 2010
ok, not critical at all, just to verify that I'm not missing anything
ivan Tue 23 Feb 2010
Hello, What is the recommended way to store binary data in const classes? Looks like the only option for now is to use
Buf.toBase64
andBuf.fromBase64
and store data as Str.brian Tue 23 Feb 2010
Right now there isn't any other good way other than using String. If you can keep it private you could reference it with an
Unsafe
.Originally I had planned to make Buf support toImmutable like List and Map do, but it was a lot trickier than I expected since Buf is essentially an IO class.
ivan Tue 23 Feb 2010
ok, not critical at all, just to verify that I'm not missing anything