Function report |
Source Code:lib\zstd\bitstream.h |
Create Date:2022-07-28 07:01:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:1,2,4,8 would be better for bitmap combinations, but slows down performance a bit ... :(
Proto:ZSTD_STATIC size_t BIT_initDStream(BIT_DStream_t *bitD, const void *srcBuffer, size_t srcSize)
Type:size_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| BIT_DStream_t * | bitD | |
| const void * | srcBuffer | |
| size_t | srcSize |
| 241 | If srcSize < 1 Then |
| 246 | If srcSize >= size of bitContainer Then |
| 248 | ptr = srcBuffer + srcSize - size of bitContainer |
| 249 | bitContainer = ZSTD_readLEST(ptr) |
| 252 | bitsConsumed = If lastByte Then 8 - -*************************************************************** Internal functions Else 0 |
| 253 | If lastByte == 0 Then Return -***************************************** Error codes handling(GENERIC) |
| 256 | Else |
| 259 | bitContainer = *start |
| 261 | Case srcSize == 7 |
| 261 | bitContainer += (size_t)()) << ( size of bitContainer * 8 - 16) |
| 263 | Case srcSize == 6 |
| 263 | bitContainer += (size_t)()) << ( size of bitContainer * 8 - 24) |
| 265 | Case srcSize == 5 |
| 265 | bitContainer += (size_t)()) << ( size of bitContainer * 8 - 32) |
| 267 | Case srcSize == 4 |
| 267 | bitContainer += (size_t)()) << 24 |
| 269 | Case srcSize == 3 |
| 269 | bitContainer += (size_t)()) << 16 |
| 271 | Case srcSize == 2 |
| 271 | bitContainer += (size_t)()) << 8 |
| 272 | Default |
| 276 | bitsConsumed = If lastByte Then 8 - -*************************************************************** Internal functions Else 0 |
| 277 | If lastByte == 0 Then Return -***************************************** Error codes handling(GENERIC) |
| 280 | bitsConsumed += ( size of bitContainer - srcSize) * 8 |
| 283 | Return srcSize |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |