18 #ifndef FOEDUS_SNAPSHOT_SNAPSHOT_ID_HPP_
19 #define FOEDUS_SNAPSHOT_SNAPSHOT_ID_HPP_
55 if (
id == kNullSnapshotId) {
76 return byte_position >> 3;
79 return static_cast<uint64_t
>(buffer_position) << 3;
83 #endif // FOEDUS_SNAPSHOT_SNAPSHOT_ID_HPP_
BufferPosition to_buffer_position(uint64_t byte_position)
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
uint32_t BufferPosition
Represents a position in some buffer.
uint64_t from_buffer_position(BufferPosition buffer_position)
SnapshotId increment(SnapshotId id)
Increment SnapshotId.
uint16_t SnapshotId
Unique ID of Snapshot.
const SnapshotId kNullSnapshotId
#define ASSERT_ND(x)
A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x'...