write method

  1. @override
void write(
  1. MemoryPointer<RType> p,
  2. String value
)
override

Implementation

@override
void write(MemoryPointer p, String value) {
  _check(p, 'write string');
  return switch (type) {
    RInt8() => p.cast<RInt8>().writeString(value),
    RInt16() => p.cast<RInt16>().writeString(value),
    RInt32() => p.cast<RInt32>().writeString(value),
    _ => throw UnsupportedError("Invalid type $R for writing a string value."),
  };
}