consider

let io = IOBuffer()
  write(io,rand(10))
  takebuf_array(io)
end

IOBuffer() is not specific to strings at all.

Best,

Tamas

On Sun, May 03 2015, Scott Jones <scott.paul.jo...@gmail.com> wrote:

> Because you can have binary strings and text strings... there is even a
> special literal for binary strings...
> b"\xffThis is a binary\x01\string"
> "This is a \u307 text string"
>
> Calling it an IOBuffer makes it sound like it is specific to I/O, not just
> strings (binary or text) that you might never do I/O on...
>
> On Sunday, May 3, 2015 at 2:43:14 PM UTC-4, Kristoffer Carlsson wrote:
>>
>> Why should it be called StringBuffer when another common use of it is to
>> write raw binary data?

Reply via email to