Searched refs:file_stream (Results 1 – 3 of 3) sorted by relevance
/device/google/cuttlefish/host/commands/secure_env/ |
D | json_serializable.cpp | 109 std::ofstream file_stream(filename, std::ios::trunc | std::ios::binary); in WriteProtectedJsonToFile() local 110 file_stream.write(reinterpret_cast<char*>(data.data()), data.size() - 1); in WriteProtectedJsonToFile() 111 if (!file_stream) { in WriteProtectedJsonToFile() 120 std::ifstream file_stream(filename, std::ios::binary | std::ios::ate); in ReadProtectedJsonFromFile() local 121 std::streamsize size = file_stream.tellg(); in ReadProtectedJsonFromFile() 122 file_stream.seekg(0, std::ios::beg); in ReadProtectedJsonFromFile() 130 if (!file_stream.read(buffer.data(), size)) { in ReadProtectedJsonFromFile() 134 if (!file_stream) { in ReadProtectedJsonFromFile()
|
/device/google/cuttlefish/host/libs/config/ |
D | host_tools_version.cpp | 34 std::ifstream file_stream(path, std::ifstream::binary); in FileCrc() local 36 while (file_stream) { in FileCrc() 37 file_stream.read(data.data(), data.size()); in FileCrc() 38 crc = crc32(crc, (unsigned char*) data.data(), file_stream.gcount()); in FileCrc()
|
/device/google/trout/tools/tracing/client/ |
D | TracingClient.cpp | 101 std::ofstream file_stream(file_path, std::fstream::binary); in GetTracingFile() local 103 if (!file_stream) { in GetTracingFile() 117 file_stream.write(write_buffer.c_str(), write_buffer.size()); in GetTracingFile()
|