gluabit32

package module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: 0BSD Imports: 2 Imported by: 0

README

bit32 for gopher-lua

Implements Lua 5.2 bit32 for gopher-lua. To use, call

import (
	"github.com/PeerDB-io/gluabit32"
)

// add so that `local bit32 = require("bit32")` works
L.PreloadModule("bit32", gluabit32.Loader)

// or add to global env
L.Push(ls.NewFunction(gluabit32.Loader))
L.Call(0, 1)
L.Env.RawSetString("bit32", L.Get(-1))
L.Pop(1)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bit32arshift

func Bit32arshift(ls *lua.LState) int

func Bit32band

func Bit32band(ls *lua.LState) int

func Bit32bnot

func Bit32bnot(ls *lua.LState) int

func Bit32bor

func Bit32bor(ls *lua.LState) int

func Bit32btest

func Bit32btest(ls *lua.LState) int

func Bit32bxor

func Bit32bxor(ls *lua.LState) int

func Bit32extract

func Bit32extract(ls *lua.LState) int

func Bit32lrotate

func Bit32lrotate(ls *lua.LState) int

func Bit32lshift

func Bit32lshift(ls *lua.LState) int

func Bit32replace

func Bit32replace(ls *lua.LState) int

func Bit32rrotate

func Bit32rrotate(ls *lua.LState) int

func Bit32rshift

func Bit32rshift(ls *lua.LState) int

func Loader

func Loader(ls *lua.LState) int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL