/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
bool equal(const Iterator& other) const { return range_ == other.range_; }
void increment() {
size_t skip = recordio_helpers::headerSize() + recordAndPos_.first.size();
- recordAndPos_.second += skip;
+ recordAndPos_.second += off_t(skip);
range_.advance(skip);
advanceToValid();
}
static_assert(offsetof(Header, headerHash) + sizeof(Header::headerHash) ==
sizeof(Header), "invalid header layout");
-} // namespace detail
+} // namespace detail
constexpr size_t headerSize() { return sizeof(detail::Header); }
return findRecord(range, range, fileId);
}
-} // namespace recordio_helpers
+} // namespace recordio_helpers
-} // namespaces
+} // namespace folly