← 返回卡片

原书出处

Database Internals A deep-dive into how distributed data systems work (Alex Petrov)

I 03 Chapter 3. File Formats Bit-Packed Data: Booleans, Enums, and Flags

第一版 · 核验版本的摘录快照 · 导入于 2026-11-24T09:34:52.751Z

Just like packed booleans, flag values can be read and written from the packed value using bitmasks and bitwise operators. For example, in order to set a bit responsible for one of the flags, we can use bitwise OR (|) and a bitmask.

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch03.html#idm46104533225560

EPUB SHA-256:1b1f3f51bc7ece848cfd37ba58e55c1ed652a510a71015284e4cc4b54f49f6c4