diff options
Diffstat (limited to '5C.md')
| -rw-r--r-- | 5C.md | 16 |
1 files changed, 8 insertions, 8 deletions
| @@ -182,7 +182,7 @@ Add an id to the `ids` filter. It must be a pointer to a 32-byte buffer. | |||
| 182 | 182 | ||
| 183 | Same as `req_add_id` but with a hex-encoded id string. Length is assumed to be 64 characters. | 183 | Same as `req_add_id` but with a hex-encoded id string. Length is assumed to be 64 characters. |
| 184 | 184 | ||
| 185 | ### `nostr.req_add_kind(req: i32, kind: i32) -> void` | 185 | ### `nostr.req_add_kind(req: i32, kind: u32) -> void` |
| 186 | 186 | ||
| 187 | Add a kind integer to the `kinds` filter. | 187 | Add a kind integer to the `kinds` filter. |
| 188 | 188 | ||
| @@ -196,15 +196,15 @@ Same as `req_add_tag` but the value is a pointer to the 32-byte binary buffer th | |||
| 196 | 196 | ||
| 197 | Hosts may deduplicate filter values (authors, ids, kinds, and tag values) when the module adds the same value more than once via `req_add_*`. | 197 | Hosts may deduplicate filter values (authors, ids, kinds, and tag values) when the module adds the same value more than once via `req_add_*`. |
| 198 | 198 | ||
| 199 | ### `nostr.req_set_limit(req: i32, limit: i32) -> void` | 199 | ### `nostr.req_set_limit(req: i32, limit: u32) -> void` |
| 200 | 200 | ||
| 201 | Sets the `"limit"` attribute of the filter. | 201 | Sets the `"limit"` attribute of the filter. |
| 202 | 202 | ||
| 203 | ### `nostr.req_set_since(req: i32, timestamp: i32) -> void` | 203 | ### `nostr.req_set_since(req: i32, timestamp: u32) -> void` |
| 204 | 204 | ||
| 205 | Sets the `"since"` attribute of the filter. | 205 | Sets the `"since"` attribute of the filter. |
| 206 | 206 | ||
| 207 | ### `nostr.req_set_until(req: i32, timestamp: i32) -> void` | 207 | ### `nostr.req_set_until(req: i32, timestamp: u32) -> void` |
| 208 | 208 | ||
| 209 | Sets the `"until"` attribute of the filter. | 209 | Sets the `"until"` attribute of the filter. |
| 210 | 210 | ||
| @@ -253,11 +253,11 @@ Returns a pointer to a 32-byte buffer containing the public key of the event aut | |||
| 253 | 253 | ||
| 254 | Returns a pointer to a 64-character string containing the hex public key of the event author. | 254 | Returns a pointer to a 64-character string containing the hex public key of the event author. |
| 255 | 255 | ||
| 256 | ### `nostr.event_get_kind(event_handle: i32) -> i32` | 256 | ### `nostr.event_get_kind(event_handle: i32) -> u32` |
| 257 | 257 | ||
| 258 | Returns the kind integer directly. | 258 | Returns the kind integer directly. |
| 259 | 259 | ||
| 260 | ### `nostr.event_get_created_at(event_handle: i32) -> i32` | 260 | ### `nostr.event_get_created_at(event_handle: i32) -> u32` |
| 261 | 261 | ||
| 262 | Returns the unix timestamp directly. | 262 | Returns the unix timestamp directly. |
| 263 | 263 | ||
| @@ -265,11 +265,11 @@ Returns the unix timestamp directly. | |||
| 265 | 265 | ||
| 266 | Returns a pointer to a buffer containing the event content (follows the String Convention above). | 266 | Returns a pointer to a buffer containing the event content (follows the String Convention above). |
| 267 | 267 | ||
| 268 | ### `nostr.event_get_tag_count(event_handle: i32) -> i32` | 268 | ### `nostr.event_get_tag_count(event_handle: i32) -> u32` |
| 269 | 269 | ||
| 270 | Returns the total number of tags on this event. | 270 | Returns the total number of tags on this event. |
| 271 | 271 | ||
| 272 | ### `nostr.event_get_tag_item_count(event_handle: i32, tag_index: i32) -> i32` | 272 | ### `nostr.event_get_tag_item_count(event_handle: i32, tag_index: i32) -> u32` |
| 273 | 273 | ||
| 274 | Returns the number of items in the tag at `tag_index`; or `0` if such tag doesn't exist. | 274 | Returns the number of items in the tag at `tag_index`; or `0` if such tag doesn't exist. |
| 275 | 275 | ||