A totally new implement of bufflib
Opened this issue · 1 comments
starwing commented
Hi, I have made a new bufflib implement, maybe have something inspired, some major different points are:
- offer a header to makes other C client can use library (mainly for 5.1/5.2 compat)
- use malloc/realloc/free instead of lua_newuserdata, use gc metamethod.
- some name of API changed, addsep -> addwithsep (maybe 'join' is better?)
- some API added, addpart to add a part of string to buffer, and part to get part of buffer.
- no s_ prefix for standard string module.
the source is here: https://gist.github.com/starwing/5876042
Regards,
Xavier Wang
Choonster commented
Very interesting, I'll have to have a look at it.