Closed jeparlefrancais closed 3 years ago
This request comes from the fact that I can't seem to assign the value I get from
buffer.dumpString()
into a StringValue objectValue
property. I tried using a ModuleScript'sSource
property to store the string but didn't have any luck with that neither. That's because Roblox's string properties are all null-terminated. I don't know why; it's annoying.
I'm not sure about introducing a second argument on the constructor if it's only used for specifying the stream format. Would a writeBase64
function work for you instead?
Yeah that would work too! I already have written a decoder so that I would not be blocked, do you want me to submit a PR? If yes feel free to just ping me on discord 😄
This request comes from the fact that I can't seem to assign the value I get from
buffer.dumpString()
into a StringValue objectValue
property. I tried using a ModuleScript'sSource
property to store the string but didn't have any luck with that neither.My solution for this is to store the
dumpBase64()
string, but it would be nicer to have a way to make BitBuffer read it back 🙂It could be done by changing the API to something like this:
Let me know what you think about that!