Home
last modified time | relevance | path

Searched refs:buffered_file (Results 1 – 8 of 8) sorted by relevance

/external/fmtlib/include/fmt/
Dos.h209 class buffered_file {
215 explicit buffered_file(FILE* f) : file_(f) {} in buffered_file() function
218 buffered_file(const buffered_file&) = delete;
219 void operator=(const buffered_file&) = delete;
222 buffered_file() FMT_NOEXCEPT : file_(nullptr) {} in buffered_file() function
225 FMT_API ~buffered_file() FMT_NOEXCEPT;
228 buffered_file(buffered_file&& other) FMT_NOEXCEPT : file_(other.file_) { in buffered_file() function
232 buffered_file& operator=(buffered_file&& other) {
240 FMT_API buffered_file(cstring_view filename, cstring_view mode);
342 FMT_API buffered_file fdopen(const char* mode);
/external/fmtlib/test/
Dos-test.cc21 using fmt::buffered_file;
179 buffered_file f; in TEST()
184 buffered_file bf = open_buffered_file(); in TEST()
187 buffered_file bf2(std::move(bf)); in TEST()
193 buffered_file bf = open_buffered_file(); in TEST()
196 buffered_file bf2; in TEST()
203 buffered_file bf = open_buffered_file(); in TEST()
204 buffered_file bf2 = open_buffered_file(); in TEST()
212 buffered_file f(open_buffered_file(&fp)); in TEST()
218 buffered_file f; in TEST()
[all …]
Dutil.cc36 fmt::buffered_file open_buffered_file(FILE** fp) { in open_buffered_file()
42 fmt::buffered_file f = read_end.fdopen("r"); in open_buffered_file()
45 fmt::buffered_file f("test-file", "w"); in open_buffered_file()
Dgtest-extra-test.cc331 using fmt::buffered_file;
344 buffered_file file(write_end.fdopen("w")); in TEST()
361 buffered_file f = write_end.fdopen("w"); in TEST()
373 buffered_file f = open_buffered_file(); in TEST()
387 buffered_file file(write_end.fdopen("w")); in TEST()
394 file = buffered_file(); in TEST()
404 buffered_file f = write_end.fdopen("w"); in TEST()
419 buffered_file f = write_end.fdopen("w"); in TEST()
Dposix-mock-test.cc33 using fmt::buffered_file;
198 fmt::buffered_file f(filename, "w"); in write_file()
392 std::unique_ptr<buffered_file> f{nullptr}; in TEST()
393 EXPECT_RETRY(f.reset(new buffered_file("temp", "r")), fopen, in TEST()
405 std::unique_ptr<buffered_file> f(new buffered_file(read_end.fdopen("r"))); in TEST()
422 buffered_file f = read_end.fdopen("r"); in TEST()
432 buffered_file f = read_end.fdopen("r"); in TEST()
Dutil.h38 fmt::buffered_file open_buffered_file(FILE** fp = nullptr);
/external/fmtlib/src/
Dos.cc148 buffered_file::~buffered_file() FMT_NOEXCEPT { in ~buffered_file()
153 buffered_file::buffered_file(cstring_view filename, cstring_view mode) { in buffered_file() function in buffered_file
160 void buffered_file::close() { in close()
170 int buffered_file::fileno() const { in fileno()
291 buffered_file file::fdopen(const char* mode) { in fdopen()
301 buffered_file bf(f); in fdopen()
/external/tensorflow/tensorflow/core/util/tensor_bundle/
Dtensor_bundle.cc72 Status ReadStringTensor(io::InputBuffer* buffered_file, size_t num_elements, in ReadStringTensor() argument
79 TF_RETURN_IF_ERROR(buffered_file->Seek(offset)); in ReadStringTensor()
80 TF_RETURN_IF_ERROR(buffered_file->Hint(size)); in ReadStringTensor()
83 TF_RETURN_IF_ERROR(buffered_file->ReadVarint64(&string_lengths[i])); in ReadStringTensor()
105 if (offset + size < buffered_file->Tell()) { in ReadStringTensor()
114 TF_RETURN_IF_ERROR(buffered_file->ReadNBytes( in ReadStringTensor()
137 buffered_file->ReadNBytes(string_length, &(*buffer)[0], &bytes_read)); in ReadStringTensor()
143 Status ReadVariantTensor(io::InputBuffer* buffered_file, Tensor* ret, in ReadVariantTensor() argument
155 TF_RETURN_IF_ERROR(buffered_file->Seek(offset)); in ReadVariantTensor()
156 TF_RETURN_IF_ERROR(buffered_file->Hint(size)); in ReadVariantTensor()
[all …]