It's quite strange. I can't call gdk_pixbuf_loader_write using the form:
Code:
local gpldr = gdk.PixbufLoader.new()
local success = gdk.PixbufLoader.write(gpldr, file_buf, ret, nil)
or
Code:
local gpldr = gdk.PixbufLoader.new()
local success = gpldr:write(file_buf, ret, nil)
So I checked with Navigator.lua and pixbuf.def and found it strange (as the attached image). In pixbuf.def, there is an entry for gdk_pixbuf_loader_write(), but not listed on Navigator.lua.