原书出处
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
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