[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: API Design
- From: Sean Conner <sean@...>
- Date: Mon, 18 Sep 2017 18:07:02 -0400
It was thus said that the Great tobias@justdreams.de once stated:
>
> The main reason why I have a buffer module is not just for mutable network
> buffers. I do have a binary packer/parser that works on Buffer,Segments
> and Lua strings alike, however, when you pass it a buffer it can do simple
> writes which makes it really convenient:
We have a difference of approach. I tend to convert raw binary data into
native Lua data (usually a table of fields) as soon as possible, do all the
manipulations using straight Lua, then pack everything back up into raw
binary data.
-spc