luajava icon indicating copy to clipboard operation
luajava copied to clipboard

Better content loading API (and docs)

Open gudzpoz opened this issue 4 months ago • 0 comments

This PR adds a few API to facilitate content loading:

Buffers:

  • ByteBuffer conversions via Lua::push
  • Lua strings will be converted to ByteBuffer if Java typing requires so.
  • One can now turn LuaValues into buffers (or vice versa).

Documentation:

  • Javadoc for Lua::load is furnished, hopefully preventing misusages.

luaL_dofile equivalence:

  • Add Lua::require.
  • Encourage using Lua::require instead of relying on a filesystem.

Hopefully closes #207, #209 and #210

gudzpoz avatar Oct 06 '24 19:10 gudzpoz