|
| Options | file::Defaults () |
| absl::Status | file::Open (absl::string_view file_name, absl::string_view mode, File **f, Options options) |
| | As of 2016-01, these methods can only be used with flags = file::Defaults().
|
| File * | file::OpenOrDie (absl::string_view file_name, absl::string_view mode, Options options) |
| absl::Status | file::Delete (absl::string_view path, Options options) |
| absl::Status | file::Exists (absl::string_view path, Options options) |
| absl::StatusOr< std::string > | file::GetContents (absl::string_view path, Options options) |
| | -— Content API -—
|
| absl::Status | file::GetContents (absl::string_view file_name, std::string *output, Options options) |
| absl::Status | file::SetContents (absl::string_view file_name, absl::string_view contents, Options options) |
| absl::Status | file::WriteString (File *file, absl::string_view contents, Options options) |
| absl::Status | file::GetTextProto (absl::string_view file_name, google::protobuf::Message *proto, Options options) |
| | -— Protobuf API -—
|
| template<typename T> |
| absl::StatusOr< T > | file::GetTextProto (absl::string_view file_name, Options options) |
| absl::Status | file::SetTextProto (absl::string_view file_name, const google::protobuf::Message &proto, Options options) |
| absl::Status | file::GetBinaryProto (const absl::string_view file_name, google::protobuf::Message *proto, Options options) |
| template<typename T> |
| absl::StatusOr< T > | file::GetBinaryProto (absl::string_view file_name, Options options) |
| absl::Status | file::SetBinaryProto (absl::string_view file_name, const google::protobuf::Message &proto, Options options) |