DeviceString property

String DeviceString

Implementation

String get DeviceString {
  final charCodes = <int>[];
  for (var i = 0; i < 128; i++) {
    if (_DeviceString[i] == 0x00) break;
    charCodes.add(_DeviceString[i]);
  }
  return String.fromCharCodes(charCodes);
}
void DeviceString=(String value)

Implementation

set DeviceString(String value) {
  final stringToStore = value.padRight(128, '\x00');
  for (var i = 0; i < 128; i++) {
    _DeviceString[i] = stringToStore.codeUnitAt(i);
  }
}