Searched refs:MARISA_IO_ERROR (Results 1 – 5 of 5) sorted by relevance
/external/marisa-trie/lib/marisa/grimoire/io/ |
D | mapper.cc | 72 MARISA_THROW_IF(size > avail_, MARISA_IO_ERROR); in seek() 100 MARISA_THROW_IF(size > avail_, MARISA_IO_ERROR); in map_data() 117 MARISA_THROW_IF(::_stat64(filename, &st) != 0, MARISA_IO_ERROR); in open_() 120 MARISA_THROW_IF(::_stat(filename, &st) != 0, MARISA_IO_ERROR); in open_() 127 MARISA_THROW_IF(file_ == INVALID_HANDLE_VALUE, MARISA_IO_ERROR); in open_() 130 MARISA_THROW_IF(map_ == NULL, MARISA_IO_ERROR); in open_() 133 MARISA_THROW_IF(origin_ == NULL, MARISA_IO_ERROR); in open_() 141 MARISA_THROW_IF(::stat(filename, &st) != 0, MARISA_IO_ERROR); in open_() 146 MARISA_THROW_IF(fd_ == -1, MARISA_IO_ERROR); in open_() 149 MARISA_THROW_IF(origin_ == MAP_FAILED, MARISA_IO_ERROR); in open_()
|
D | writer.cc | 91 MARISA_THROW_IF(::fopen_s(&file, filename, "wb") != 0, MARISA_IO_ERROR); in open_() 94 MARISA_THROW_IF(file == NULL, MARISA_IO_ERROR); in open_() 129 MARISA_THROW_IF(size_written <= 0, MARISA_IO_ERROR); in write_data() 134 MARISA_THROW_IF(::fwrite(data, 1, size, file_) != size, MARISA_IO_ERROR); in write_data() 135 MARISA_THROW_IF(::fflush(file_) != 0, MARISA_IO_ERROR); in write_data() 139 static_cast<std::streamsize>(size)), MARISA_IO_ERROR); in write_data() 141 MARISA_THROW(MARISA_IO_ERROR, "std::ios_base::failure"); in write_data()
|
D | reader.cc | 91 MARISA_THROW_IF(::fopen_s(&file, filename, "rb") != 0, MARISA_IO_ERROR); in open_() 94 MARISA_THROW_IF(file == NULL, MARISA_IO_ERROR); in open_() 129 MARISA_THROW_IF(size_read <= 0, MARISA_IO_ERROR); in read_data() 134 MARISA_THROW_IF(::fread(buf, 1, size, file_) != size, MARISA_IO_ERROR); in read_data() 138 static_cast<std::streamsize>(size)), MARISA_IO_ERROR); in read_data() 140 MARISA_THROW(MARISA_IO_ERROR, "std::ios_base::failure"); in read_data()
|
/external/marisa-trie/tests/ |
D | io-test.cc | 51 EXCEPT(reader.read(&byte), MARISA_IO_ERROR); in TestFilename() 70 EXCEPT(mapper.map(&byte), MARISA_IO_ERROR); in TestFilename() 83 EXCEPT(reader.read(&byte), MARISA_IO_ERROR); in TestFilename() 140 EXCEPT(reader.read(&byte), MARISA_IO_ERROR); in TestFd() 196 EXCEPT(reader.read(&byte), MARISA_IO_ERROR); in TestFile() 234 EXCEPT(reader.read(&byte), MARISA_IO_ERROR); in TestStream()
|
/external/marisa-trie/include/marisa/ |
D | base.h | 88 MARISA_IO_ERROR = 9, enumerator
|