On Nov 8, 7:24 am, Jari Williamsson
<jari.williams... / mailbox.swipnet.se> wrote:
> I have a buffer (stored in a String class) with a NULL-terminated
> C-style string inside, what's the most efficient approach to get that
> text string up to the NULL?
>
> Best regards,
>
> Jari Williamsson

Would buf.unpack("a*") work?