upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--5C.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/5C.md b/5C.md
index 6d9455a..9459ada 100644
--- a/5C.md
+++ b/5C.md
@@ -269,23 +269,23 @@ Returns a pointer to a buffer containing the event content (follows the String C
269 269
270Returns the total number of tags on this event. 270Returns 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
274Returns the number of items in the tag at `tag_index`; or `0` if such tag doesn't exist. 274Returns 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
278Returns 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. 278Returns 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
282Same 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. 282Same 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
286Finds 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. 286Finds 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
290Same 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. 290Same 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