luvit/luvit — pull request #334 by kristate (2012-08-25 09:06:19+00:00)
Title: Buffer: Several Improvements to Buffer interface;

After implementing some binary protocols, I decided to clean-up the Buffer module.
Some highlights include:
■ Buffer.meta:__len
Allow usage of length operator(#)

■ Buffer:copy
Allow copying direct copying into buffer via ffi.copy

■ Buffer:until
returns buffer contents up until first instance of bufOrString (very useful for binary protocols)