|
HAPI_DECL | HAPI_GetStringBufLength (const HAPI_Session *session, HAPI_StringHandle string_handle, int *buffer_length) |
| Gives back the string length of the string with the given handle. More...
|
|
HAPI_DECL | HAPI_GetString (const HAPI_Session *session, HAPI_StringHandle string_handle, char *string_value, int length) |
| Gives back the string value of the string with the given handle. More...
|
|
HAPI_DECL | HAPI_SetCustomString (const HAPI_Session *session, const char *string_value, HAPI_StringHandle *handle_value) |
| Adds the given string to the string table and returns the handle. It is the responsibility of the caller to manage access to the string. The intended use for custom strings is to allow structs that reference strings to be passed in to HAPI. More...
|
|
HAPI_DECL | HAPI_RemoveCustomString (const HAPI_Session *session, const HAPI_StringHandle string_handle) |
| Removes the specified string from the server and invalidates the handle. More...
|
|
HAPI_DECL | HAPI_GetStringBatchSize (const HAPI_Session *session, const int *string_handle_array, int string_handle_count, int *string_buffer_size) |
| Gives back the length of the buffer needed to hold all the values null-separated for the given string handles. Used with HAPI_GetStringBatch(). More...
|
|
HAPI_DECL | HAPI_GetStringBatch (const HAPI_Session *session, char *char_buffer, int char_array_length) |
| Gives back the values of the given string handles. The given char array is filled with null-separated values, and the final value is null-terminated. Used with HAPI_GetStringBatchSize(). Using this function instead of repeated calls to HAPI_GetString() can be more more efficient for a large number of strings. More...
|
|
Functions for handling strings.
Gives back the string value of the string with the given handle.
- Parameters
-
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | string_handle | Handle of the string to query. |
[out] | string_value | Actual string value (character array). |
[in] | length | Length of the string buffer (must match size of string_value - so including NULL terminator). |
HAPI_DECL HAPI_GetStringBatch |
( |
const HAPI_Session * |
session, |
|
|
char * |
char_buffer, |
|
|
int |
char_array_length |
|
) |
| |
Gives back the values of the given string handles. The given char array is filled with null-separated values, and the final value is null-terminated. Used with HAPI_GetStringBatchSize(). Using this function instead of repeated calls to HAPI_GetString() can be more more efficient for a large number of strings.
- Parameters
-
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[out] | char_buffer | Array of characters to hold string values. |
[in] | char_array_length | Length of char_array . Must be large enough to hold all the string values including null separators. |
HAPI_DECL HAPI_GetStringBatchSize |
( |
const HAPI_Session * |
session, |
|
|
const int * |
string_handle_array, |
|
|
int |
string_handle_count, |
|
|
int * |
string_buffer_size |
|
) |
| |
Gives back the length of the buffer needed to hold all the values null-separated for the given string handles. Used with HAPI_GetStringBatch().
- Parameters
-
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | string_handle_array | Array of string handles to be read. |
[in] | string_handle_count | Length of string_handle_array |
[out] | string_buffer_size | Buffer length required for subsequent call to HAPI_GetStringBatch to hold all the given string values null-terminated |
Gives back the string length of the string with the given handle.
- Parameters
-
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | string_handle | Handle of the string to query. |
[out] | buffer_length | Buffer length of the queried string (including NULL terminator). |
Removes the specified string from the server and invalidates the handle.
- Parameters
-
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | string_handle | Handle of the string that was added |
Adds the given string to the string table and returns the handle. It is the responsibility of the caller to manage access to the string. The intended use for custom strings is to allow structs that reference strings to be passed in to HAPI.
- Parameters
-
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | string_value | Actual string value (character array). |
[out] | handle_value | Handle of the string that was added |