application-flow
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Working with ovx_string_t in C and C++. Use when user asks about printing, comparing, or converting ovx strings.
$ npx -y skills add nvidia-omniverse/ovrtx --skill string-handling --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/string-handlingContext preview
The summary Claude sees to decide when to auto-load this skill.
Working with ovx_string_t in C and C++. Use when user asks about printing, comparing, or converting ovx strings.
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NvidiaProprietary # # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual # property and proprietary rights in and to this material, related # documentation and any modifications thereto. Any use, reproduction, # disclosure or distribution of this material and related documentation # without an express license agreement from NVIDIA CORPORATION or # its affiliates is strictly prohibited. name: string-handling description: > Working with ovx_string_t in C and C++. Use when user asks about printing, comparing, or converting ovx strings. license: LicenseRef-NvidiaProprietary author: NVIDIA ovrtx tags: - ovrtx - c - strings tools: - Read - Grep
Use this skill when the user asks about printing, comparing, or converting ovx strings.
Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.
1. Identify whether the task is printing, comparing, converting, or preserving an `ovx_string_t`. 2. Use both `ptr` and `length`; do not assume the string can be handled safely by APIs that only look for a null terminator. 3. In C, print with a precision-limited string format and compare by checking `length` before using `strncmp`. 4. In C++, prefer `std::string_view` when the caller only needs borrowed access, and copy immediately if the value must outlive the API-owned storage. 5. When changing code, run the C example or helper test that owns the referenced string-handling pattern whenever practical.
This skill has no scripts.
All strings returned by the ovrtx API use `ovx_string_t` — a `(ptr, length)` pair. The strings are null-terminated, but prefer using the `length` field over relying on the null terminator.
Print with the `%.*s` precision pattern so the explicit length controls how many characters are read from `ptr`.
Compare by checking `length` first, then using `strncmp` for the exact byte count.
Wrap `ptr` and `length` in `std::string_view` for zero-copy access to the standard string API.
The error-handling helper in the minimal C example demonstrates this pattern:
> **Source:** `examples/c/minimal/main.cpp` snippet `check-error-helper`
| Type | Header | |------|--------| | `ovx_string_t` | `include/ovx/types.h` | | `literal_to_ovx_string(str)` | `include/ovx/types.h` — creates `ovx_string_t` from a string literal | | `is_ovx_string_empty(str)` | `include/ovx/types.h` — null/empty check |
ovrtx is a C and Python library for embedding Omniverse RTX sensor simulation and visualization directly into applications.
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Asynchronous operation patterns including polling, timeouts, and non-blocking workflows. Use when user asks about async…
Replacing persistent ovrtx attribute bindings with reusable ovstage queries for repeated writes or maps. Use when user asks about…
Binding materials to prims at runtime. Use when user asks to assign a material, change a material, set material binding, or swap…
Available camera render outputs for Real-Time Path-Tracing (RT2) mode. Use when user asks what AOVs/render vars are available,…
Cloning USD subtrees to create copies at new paths. Use when user asks to clone, duplicate, copy a prim, or create instances of…