-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.lua
More file actions
42 lines (35 loc) · 862 Bytes
/
base.lua
File metadata and controls
42 lines (35 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---@meta _
-- All structure objects inherit from this class.
--
-- See: https://docs.dfhack.org/en/stable/library/xml/SYNTAX.html#xml-file-format
---@class DFBase
local DFBase
---@nodiscard
---@generic T: DFBase
---@param self T
---@return number Size
---@return number|nil Address
function DFBase:sizeof() end
---@nodiscard
---@param object any
---@return boolean
function df.isnull(object) end
---@nodiscard
---@param object any
---@param allow_null boolean|nil
---@return string|NULL|nil
function df.isvalid(object, allow_null) end
---@nodiscard
---@param object any
---@return number|nil Size
---@return number|nil Address
function df.sizeof(object) end
---@nodiscard
---@param type DFType|DFObject
---@param object any
---@return boolean
function df.is_instance(type, object) end
-- NULL value
---@class NULL: lightuserdata
NULL = nil
df.NULL = NULL