Utf8 class

Utf8 implements conversion between Dart strings and null-terminated Utf8-encoded "char*" strings in C.

Utf8 is respresented as a struct so that Pointer<Utf8> can be used in native function signatures.

Inheritance
Available Extensions

Constructors

Utf8()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromUtf8(Pointer<Utf8> string) String
Creates a String containing the characters UTF-8 encoded in string. [...]
strlen(Pointer<Utf8> string) int
Returns the length of a null-terminated string -- the number of (one-byte) characters before the first null byte.
toUtf8(String string) Pointer<Utf8>
Convert a String to a Utf8-encoded null-terminated C string. [...]