addCommand(String str, {bool addEnd = true}) { if (addEnd) { str += '\r\n'; } buffer.addAll(uint16To8(gbk.encode(str))); }