slot_type
Behaviour
Section titled “Behaviour”- Locate the object pointed to by the specified
slot_no
- Determine its
sf
field code and return this, or some other information (see below) ifflags
are used
- Retrieves the type of the specified slot.
- Returns an error code or the type of the slot.
Definition
Section titled “Definition”int64_t slot_type ( uint32_t slot_no, uint32_t flags);
function slot_type(slotno: number, flags: number): ErrorCode | number
Example
Section titled “Example”int64_t fidle_code = slot_type(1, 0);
const field_code = slot_type(1, 0)
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
slot_no | uint32_t | The slot number |
flags | uin32_t | For normal operation this should be |
Name | Type | Description |
---|---|---|
slotno | number | The slot number to check the type of. |
flags | number | Flags to determine the type. |
Return Code
Section titled “Return Code”Type | Description |
---|---|
int64_t | If |
Type | Description |
---|---|
ErrorCode or number | Returns an error code or the type of the slot. |