Interface ExternalLoader

All Known Implementing Classes:
ClassPathLoader

public interface ExternalLoader
An external resource loader to load external module file
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Buffer
    load(String module, Lua L)
    Reads an external Lua module file into a direct buffer
  • Method Details

    • load

      @Nullable Buffer load(String module, Lua L)
      Reads an external Lua module file into a direct buffer

      This is used internally by Lua implementations and should not be called directly.

      Parameters:
      module - the module
      L - the Lua state requesting the module
      Returns:
      a direct buffer containing the module file, with position at zero, limit as the length