Skip to main content

Module util

Module util 

Source

Structs§

Spinlock
SpinlockGuard

Constants§

ENABLE_FORY_DEBUG_OUTPUT
Global flag to check if ENABLE_FORY_DEBUG_OUTPUT environment variable is set at compile time. Set ENABLE_FORY_DEBUG_OUTPUT=1 at compile time to enable debug output.
EPOCH

Functions§

to_camel_case
Converts a snake_case string to lowerCamelCase. Used for cross-language field name serialization since Rust uses snake_case but other languages (Java, etc.) expect camelCase in the wire format.
to_snake_case
Converts a camelCase or PascalCase string to snake_case. Used for cross-language field name matching since Java uses camelCase and Rust uses snake_case.
to_utf8
Converts UTF-16 encoded data to UTF-8.