64 int32u
Get (
size_t HowMany)
67 static const int32u Mask[33]={
69 0x00000001, 0x00000003, 0x00000007, 0x0000000f,
70 0x0000001f, 0x0000003f, 0x0000007f, 0x000000ff,
71 0x000001ff, 0x000003ff, 0x000007ff, 0x00000fff,
72 0x00001fff, 0x00003fff, 0x00007fff, 0x0000ffff,
73 0x0001ffff, 0x0003ffff, 0x0007ffff, 0x000fffff,
74 0x001fffff, 0x003fffff, 0x007fffff, 0x00ffffff,
75 0x01ffffff, 0x03ffffff, 0x07ffffff, 0x0fffffff,
76 0x1fffffff, 0x3fffffff, 0x7fffffff, 0xffffffff,
79 if (HowMany==0 || HowMany>32)
82 ptr_BeforeLastCall=ptr;
84 unsigned long m=Mask[HowMany];
88 if(endbyte+4>=storage){
90 if(endbyte*8+(
long)HowMany>storage*8){
98 ret|=ptr[1]<<(8-endbit);
100 ret|=ptr[2]<<(16-endbit);
102 ret|=(int32u)ptr[3]<<(24-endbit);
103 if(HowMany>32 && endbit){
104 ret|=(int32u)ptr[4]<<(32-endbit);
112 endbyte+=(long)HowMany/8;
113 endbit=(long)HowMany&7;
143 endbyte_BookMark=endbyte;
144 endbit_BookMark=endbit;
145 buffer_BookMark=buffer;
147 ptr_BeforeLastCall_BookMark=ptr_BeforeLastCall;
148 storage_BookMark=storage;
152 endbyte=endbyte_BookMark;
153 endbit=endbit_BookMark;
154 buffer=buffer_BookMark;
156 ptr_BeforeLastCall=ptr_BeforeLastCall_BookMark;
157 storage=storage_BookMark;