Lines Matching defs:data
197 uint64_t data = 0;
208 file >> std::hex >> data;
232 return data;
237 std::string data;
248 file >> data;
264 return data;
278 std::vector<uint8_t> data(length, 0);
281 fread(data.data(), sizeof(decltype(data[0])), length, file.get());
285 // If hit EOF, just return the amount of data that was read.
288 data.erase(data.begin() + bytes, data.end());
304 return data;
340 void PMBus::writeBinary(const std::string& name, std::vector<uint8_t> data,
355 lg2::debug("Write data to sysfs file FILENAME={FILENAME}", "FILENAME",
357 file.write(reinterpret_cast<const char*>(&data[0]), data.size());
363 "Failed to write binary data to sysfs file errno={ERRNO} FILENAME={FILENAME}",