Plaintext.fromPointer constructor

Plaintext.fromPointer(
  1. Backend backend,
  2. Pointer<NativeType> obj, {
  3. 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();
  }
}