diff options
| author | fiatjaf_ <fiatjaf@gmail.com> | 2026-04-13 18:46:31 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-13 18:46:31 -0300 |
| commit | db1e1d25cd323ebea30b7725dc29ff38174eb8d5 (patch) | |
| tree | 374c11513ae026fdddee976f5bf5abbaf113d747 /5C.md | |
| parent | 98fdcd3e925b8d14984cb526df222049dbf16b7f (diff) | |
againnscript
Co-authored-by: Awiteb <a@4rs.nl>
Diffstat (limited to '5C.md')
| -rw-r--r-- | 5C.md | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -269,23 +269,23 @@ Returns a pointer to a buffer containing the event content (follows the String C | |||
| 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) -> u32` | 272 | ### `nostr.event_get_tag_item_count(event_handle: i32, tag_index: u32) -> 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 | ||
| 276 | ### `nostr.event_get_tag_item(event_handle: i32, tag_index: i32, item_index: i32) -> i32` | 276 | ### `nostr.event_get_tag_item(event_handle: i32, tag_index: u32, item_index: u32) -> i32` |
| 277 | 277 | ||
| 278 | Returns a pointer to a buffer containing the item at `(tag_index, item_index)` (follows the String Convention above); or `0` if such tag doesn't exist. | 278 | Returns a pointer to a buffer containing the item at `(tag_index, item_index)` (follows the String Convention above); or `0` if such tag doesn't exist. |
| 279 | 279 | ||
| 280 | ### `nostr.event_get_tag_item_bin32(event_handle: i32, tag_index: i32, item_index: i32) -> i32` | 280 | ### `nostr.event_get_tag_item_bin32(event_handle: i32, tag_index: u32, item_index: u32) -> i32` |
| 281 | 281 | ||
| 282 | Same as `event_get_tag_item`, but returns a pointer to a 32-byte buffer of the item if it happened to be a pubkey or an event id; `0` otherwise. | 282 | Same as `event_get_tag_item`, but returns a pointer to a 32-byte buffer of the item if it happened to be a pubkey or an event id; `0` otherwise. |
| 283 | 283 | ||
| 284 | ### `nostr.event_get_tag_item_by_name(event_handle: i32, name_ptr: i32, name_len: i32, item_index: i32) -> i32` | 284 | ### `nostr.event_get_tag_item_by_name(event_handle: i32, name_ptr: i32, name_len: i32, item_index: u32) -> i32` |
| 285 | 285 | ||
| 286 | Finds the first tag whose name (item 0) matches the string at `name_ptr/name_len`, then returns a pointer to a buffer containing item `item_index` from that tag; `0` if no matching tag is found. | 286 | Finds the first tag whose name (item 0) matches the string at `name_ptr/name_len`, then returns a pointer to a buffer containing item `item_index` from that tag; `0` if no matching tag is found. |
| 287 | 287 | ||
| 288 | ### `nostr.event_get_tag_item_by_name_bin32(event_handle: i32, name_ptr: i32, name_len: i32, item_index: i32) -> i32` | 288 | ### `nostr.event_get_tag_item_by_name_bin32(event_handle: i32, name_ptr: i32, name_len: i32, item_index: u32) -> i32` |
| 289 | 289 | ||
| 290 | Same as `event_get_tag_item_by_name`, but returns a pointer to a 32-byte buffer of the value if it happened to be a pubkey or an event id; `0` otherwise. | 290 | Same as `event_get_tag_item_by_name`, but returns a pointer to a 32-byte buffer of the value if it happened to be a pubkey or an event id; `0` otherwise. |
| 291 | 291 | ||