setAsciiString method
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
Implementation
void setAsciiString(
String value, {
required bool nullTerminated,
}) {
for (var i = 0; value.length > i; i++) {
this[i] = value.codeUnitAt(i);
}
if (nullTerminated) {
this[value.length] = 0;
}
}