Use luaL_setfuncs in buffer.c