StringUtils class
String conversion utilities for FFI
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromNativeUtf8(
Pointer< Char> pointer) → String - Convert native UTF-8 string to Dart string safely
-
fromNativeUtf8WithLength(
Pointer< Char> pointer, int length) → String - Convert native UTF-8 string with known length to Dart string safely.
-
getUtf8ByteLength(
String str) → int - Get UTF-8 byte length of a string without allocating memory
-
toNativeUtf8(
String str, MemoryManager manager) → Pointer< Char> - Convert Dart string to native UTF-8 and track allocation
-
toNativeUtf8WithLength(
String str, MemoryManager manager) → (Pointer< Char> , int) - Convert Dart string to native UTF-8 with byte length