Plaintext.fromPointer constructor
Plaintext.fromPointer(
- Backend backend,
- Pointer<
NativeType> obj, { - bool extractStr = true,
Initializes a plaintext from an existing C obj
.
If extractStr
is true, the string obj
is extracted from the memory address.
Implementation
Plaintext.fromPointer(this.backend, this.obj, {bool extractStr = true}) {
if (extractStr)
{
text = _c_get_plaintext(obj).toDartString();
}
}