setString method

void setString(
  1. String value
)

Sets this instance to a copy of the specified string.

Throws a ChilkatException if the call fails; the details are in ChilkatException.lastErrorText. Throws an ArgumentError if a string argument contains a NUL character.

Implementation

void setString(String value) {
  final h = _handle;
  using((arena) {
    final r = _CkStringBuilder_SetString(h, _toNative(arena, value, 'value'));
    if (r == 0) {
      throw _fail('setString');
    }
  });
}