DeviceName property

String DeviceName

Implementation

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

Implementation

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