Module: Y::Lib0::Binary

Defined in:
lib/y/lib0/binary.rb

Constant Summary collapse

BIT1 =
1
BIT2 =
2
BIT3 =
4
BIT4 =
8
BIT5 =
16
BIT6 =
32
BIT7 =
64
BIT8 =
128
BIT9 =
256
BIT10 =
512
BIT11 =
1024
BIT12 =
2048
BIT13 =
4096
BIT14 =
8192
BIT15 =
16_384
BIT16 =
32_768
BIT17 =
65_536
BIT18 =
1 << 17
BIT19 =
1 << 18
BIT20 =
1 << 19
BIT21 =
1 << 20
BIT22 =
1 << 21
BIT23 =
1 << 22
BIT24 =
1 << 23
BIT25 =
1 << 24
BIT26 =
1 << 25
BIT27 =
1 << 26
BIT28 =
1 << 27
BIT29 =
1 << 28
BIT30 =
1 << 29
BIT31 =
1 << 30
BIT32 =
1 << 31
BITS0 =
0
BITS1 =
1
BITS2 =
3
BITS3 =
7
BITS4 =
15
BITS5 =
31
BITS6 =
63
BITS7 =
127
BITS8 =
255
BITS9 =
511
BITS10 =
1023
BITS11 =
2047
BITS12 =
4095
BITS13 =
8191
BITS14 =
16_383
BITS15 =
32_767
BITS16 =
65_535
BITS17 =
BIT18 - 1
BITS18 =
BIT19 - 1
BITS19 =
BIT20 - 1
BITS20 =
BIT21 - 1
BITS21 =
BIT22 - 1
BITS22 =
BIT23 - 1
BITS23 =
BIT24 - 1
BITS24 =
BIT25 - 1
BITS25 =
BIT26 - 1
BITS26 =
BIT27 - 1
BITS27 =
BIT28 - 1
BITS28 =
BIT29 - 1
BITS29 =
BIT30 - 1
BITS30 =
BIT31 - 1
BITS31 =
0x7FFFFFFF
BITS32 =
0xFFFFFFFF