Binary-to-hex helpers plus passthrough access to the primary data card component.
- Repository:
opencomputers - System:
opencomputers - Type:
library
OpenComputers/src\main\resources\assets\opencomputers\loot\data\usr\lib\data.lua
local data = require("data")- Description: Convert hexadecimal text into raw binary bytes.
- Parameters:
hex
data.fromHex(nil)- Description: Convert raw binary bytes into uppercase hexadecimal text.
- Parameters:
data
data.toHex(nil)- Besides the documented helpers on this page, unknown field lookups fall through to
component.data, so additional data-card methods remain available through the same module.