Write an integer to the XRPLD trace log
Behaviour
- Write an integer to the trace log along with a message (if any)
Definition
int64_t trace_num (
uint32_t mread_ptr,
uint32_t mread_len,
int64_t number
);
Example
#define SBUF(str) (uint32_t)(str), sizeof(str)
trace_num(SBUF("This is an integer"), 10);
Parameters
| Name | Type | Description |
|---|---|---|
| rmead_ptr | uint32_t | Pointer to a message to output before the hex-encoded serialized object found in the slot. May be null. |
| mread_len | uint32_t | Length of the message. May be null. |
| number | int64_t | The number. |
Return Code
| Type | Description |
|---|---|
| int64_t | 0 if successfulIf negative, an error: OUT_OF_BOUNDS- pointers/lengths specified outside of hook memory. |