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: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址