lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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