Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2011-11-17 23:12:19 +0400
committerKenneth Heafield <github@kheafield.com>2011-11-17 23:12:19 +0400
commit974a708dddab2b4c6836a176d95f8455d0ed5f51 (patch)
tree0916139ae18b032250dc84a6703dabbedc7dc8ac /util/file.hh
parent17cec851dfcf5712c66e6304308273b62dc532e8 (diff)
Updated kenlm 96ef3f2c11.
Invalidates old gcc and 32-bit formats, replacing these with one consistent format: 64-bit new gcc. Backwards compatible with these files.
Diffstat (limited to 'util/file.hh')
-rw-r--r--util/file.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/file.hh b/util/file.hh
index b820ba351..04023dec0 100644
--- a/util/file.hh
+++ b/util/file.hh
@@ -71,6 +71,8 @@ int OpenReadOrThrow(const char *name);
const uint64_t kBadSize = (uint64_t)-1;
uint64_t SizeFile(int fd);
+void ResizeOrThrow(int fd, uint64_t to);
+
void ReadOrThrow(int fd, void *to, std::size_t size);
std::size_t ReadOrEOF(int fd, void *to_void, std::size_t amount);