Sha256: a05b959fdc579c2b9be8ca18bca642651b22b17be7bb6f164e5c012f0f5ec08f
Contents?: true
Size: 611 Bytes
Versions: 3
Compression:
Stored size: 611 Bytes
Contents
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "utils.h" #include <ios> namespace fasttext { namespace utils { int64_t size(std::ifstream& ifs) { ifs.seekg(std::streamoff(0), std::ios::end); return ifs.tellg(); } void seek(std::ifstream& ifs, int64_t pos) { ifs.clear(); ifs.seekg(std::streampos(pos)); } } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-fasttext-0.3.0 | vendor/fasttext/utils.cc |
ffi-fasttext-0.1.1 | vendor/fasttext/utils.cc |
ffi-fasttext-0.1.0 | vendor/fasttext/utils.cc |