PyAPI: add utility functions get the size from an evaluated string
Allows including null bytes in the resulting string.
This commit is contained in:
@@ -85,6 +85,12 @@ bool BPY_execute_string_as_intptr(struct bContext *C,
|
||||
const char *expr,
|
||||
const bool verbose,
|
||||
intptr_t *r_value);
|
||||
bool BPY_execute_string_as_string_and_size(struct bContext *C,
|
||||
const char *imports[],
|
||||
const char *expr,
|
||||
const bool verbose,
|
||||
char **r_value,
|
||||
size_t *r_value_size);
|
||||
bool BPY_execute_string_as_string(struct bContext *C,
|
||||
const char *imports[],
|
||||
const char *expr,
|
||||
|
Reference in New Issue
Block a user