slot_clear
Behaviour
Section titled “Behaviour”- Free the specified slot, releasing any object that was slotted there
Definition
Section titled “Definition”int64_t slot_clear ( uint32_t slot_no);function slot_clear(slotno: number): ErrorCode | numberExample
Section titled “Example”slot_clear(1); // assumes a transaction is slotted into slot=1slot_clear(1) // assumes a transaction is slotted into slot=1Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| slot_no | uint32_t | The slot number |
| Name | Type | Description |
|---|---|---|
| slotno | number | The slot number |
Return Code
Section titled “Return Code”| Type | Description |
|---|---|
| int64_t |
|
| Type | Description |
|---|---|
| ErrorCode | number | Returns an error code or the result of the clear operation. |