30 if (buffer ==
nullptr || count == 0)
33 if (file != 1 && file != 2)
39 if (str.length() >= 26 && str.compare(0, 8,
"$vcpuid=") == 0)
43 auto vcpuid_str = str.substr(0, 18);
44 auto vcpuid_num = std::stoull(vcpuid_str, 0, 16);
48 g_vcm->write(vcpuid_num, str);
49 return static_cast<int>(count);
55 return static_cast<int>(count);
void write(char c) noexcept
int write(int file, const void *buffer, size_t count)
constexpr const auto string
static serial_port_intel_x64 * instance() noexcept