Skip to content

slot_type

  • Locate the object pointed to by the specified slot_no
  • Determine its sf field code and return this, or some other information (see below) if flags are used
int64_t slot_type (
uint32_t slot_no,
uint32_t flags
);
int64_t fidle_code =
slot_type(1, 0);
NameTypeDescription
slot_nouint32_tThe slot number
flagsuin32_t

For normal operation this should be 0.

To determine whether or not an STI_AMOUNT type contains a native (XAH) amount or a floating point (IOU) amount set to 1.

TypeDescription
int64_t

If flags is 0 then:
The sf field code of the slotted object

If flags is 1 then:
1 if and only if the slotted object is an STI_AMOUNT and the type of the amount is XAH.

If negative, an error:
DOESNT_EXIST
- the specified slot_no does not contain an object.

NOT_AN_AMOUNT
- flags was set to 1 but the slotted object is not an STI_AMOUNT object