package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Jun 26, 2025
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
bit 
Usage
local bit = require("bit")
local result, _ = bit.band(1, 0)
print(result)
-- Output: 0
local result, _ = bit.lshift(10, 5)
print(result)
-- Output: 320
Documentation
¶
Package bit implements Go bitwise operations functionality for Lua.
Bitwise returns a Lua function used for bitwise operations.
Loader is the module loader function.
Not implements bitwise not.
Preload adds bit to the given Lua state's package.preload table. After it
has been preloaded, it can be loaded using require:
local bit = require("bit")
Source Files
¶
Click to show internal directories.
Click to hide internal directories.