read-only version for Bitfield(), if there is a write operation in ops, the function will return with failed status.
| 62 | // read-only version for Bitfield(), if there is a write operation in ops, the function will return with failed |
| 63 | // status. |
| 64 | rocksdb::Status BitfieldReadOnly(engine::Context &ctx, const Slice &user_key, |
| 65 | const std::vector<BitfieldOperation> &ops, |
| 66 | std::vector<std::optional<BitfieldValue>> *rets) { |
| 67 | return bitfield<true>(ctx, user_key, ops, rets); |
| 68 | } |
| 69 | static bool GetBitFromValueAndOffset(std::string_view value, uint32_t bit_offset); |
| 70 | static bool IsEmptySegment(const Slice &segment); |
| 71 |