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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
use super::*;
#[inline(always)]
pub fn slot(slotted_obj: &mut [u8], slot_no: u32) -> Result<u64> {
buf_write_1arg(slotted_obj, slot_no, _c::slot)
}
#[inline(always)]
pub fn slot_clear(slot_no: u32) -> Result<u64> {
api_1arg_call(slot_no, _c::slot_clear)
}
#[inline(always)]
pub fn slot_count(slot_no: u32) -> Result<u64> {
api_1arg_call(slot_no, _c::slot_count)
}
#[inline(always)]
pub fn slot_id(slot_no: u32) -> Result<u64> {
api_1arg_call(slot_no, _c::slot_id)
}
#[inline(always)]
pub fn slot_set(keylet: &[u8], slot_no: i32) -> Result<u64> {
let res = unsafe { _c::slot_set(keylet.as_ptr() as u32, keylet.len() as u32, slot_no) };
result_u64(res)
}
#[inline(always)]
pub fn slot_size(slot_no: u32) -> Result<u64> {
api_1arg_call(slot_no, _c::slot_size)
}
#[inline(always)]
pub fn slot_subarray(parent_slot: u32, array_id: u32, new_slot: u32) -> Result<u64> {
api_3arg_call(parent_slot, array_id, new_slot, _c::slot_subarray)
}
#[inline(always)]
pub fn slot_subfield(parent_slot: u32, field_id: FieldId, new_slot: u32) -> Result<u64> {
api_3arg_call(parent_slot, field_id as _, new_slot, _c::slot_subfield)
}
#[inline(always)]
pub fn slot_type(slot_no: u32, flags: u32) -> Result<u64> {
let res = unsafe { _c::slot_type(slot_no, flags) };
result_u64(res)
}
#[inline(always)]
pub fn slot_float(slot_no: u32) -> Result<XFL> {
let res = unsafe { _c::slot_float(slot_no) };
result_xfl(res)
}