Free up a currently occupied slot
Behaviour
- Free the specified slot, releasing any object that was slotted there
Definition
int64_t slot_clear (
uint32_t slot_no
);
Example
slot_clear(1); // assumes a transaction is slotted into slot=1
Parameters
| Name | Type | Description |
|---|---|---|
| slot_no | uint32_t | The slot number |
Return Code
| Type | Description |
|---|---|
| int64_t | 1 or an errorIf negative, an error: DOESNT_EXIST- the specified slot does not contain any object or it is an invalid slot |