Skip to content

Function to grab a Uint8Array as lua string #82

Description

@daurnimator
convert_uint8array = function (L) {
    let u = fengari.interop.checkjs(L, 1);
    fengari.lauxlib.luaL_argcheck(L, u instanceof Uint8Array, 1, "not a Uint8Array");
    fengari.lua.lua_pushstring(L, u);
    return 1;
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions