X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php84-brotli_0.5.0-3.el8/brotli/c/dec
opt
/
alt
/
tests
/
alt-php84-brotli_0.5.0-3.el8
/
brotli
/
c
/
dec
/
ðŸ“
..
ðŸ“
.libs
📄
bit_reader.c
(1.23 KB)
📄
bit_reader.dep
(467 B)
📄
bit_reader.h
(11.72 KB)
📄
bit_reader.lo
(285 B)
📄
context.h
(11.63 KB)
📄
decode.c
(83.26 KB)
📄
decode.dep
(1.42 KB)
📄
decode.lo
(277 B)
📄
huffman.c
(11.47 KB)
📄
huffman.dep
(539 B)
📄
huffman.h
(2.32 KB)
📄
huffman.lo
(279 B)
📄
port.h
(4.9 KB)
📄
prefix.h
(31.45 KB)
📄
state.c
(4.96 KB)
📄
state.dep
(843 B)
📄
state.h
(7.27 KB)
📄
state.lo
(275 B)
📄
transform.h
(9.26 KB)
Editing: bit_reader.c
/* Copyright 2013 Google Inc. All Rights Reserved. Distributed under MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Bit reading helpers */ #include "./bit_reader.h" #include <brotli/types.h> #include "./port.h" #if defined(__cplusplus) || defined(c_plusplus) extern "C" { #endif void BrotliInitBitReader(BrotliBitReader* const br) { br->val_ = 0; br->bit_pos_ = sizeof(br->val_) << 3; } BROTLI_BOOL BrotliWarmupBitReader(BrotliBitReader* const br) { size_t aligned_read_mask = (sizeof(br->val_) >> 1) - 1; /* Fixing alignment after unaligned BrotliFillWindow would result accumulator overflow. If unalignment is caused by BrotliSafeReadBits, then there is enough space in accumulator to fix alignment. */ if (!BROTLI_ALIGNED_READ) { aligned_read_mask = 0; } if (BrotliGetAvailableBits(br) == 0) { if (!BrotliPullByte(br)) { return BROTLI_FALSE; } } while ((((size_t)br->next_in) & aligned_read_mask) != 0) { if (!BrotliPullByte(br)) { /* If we consumed all the input, we don't care about the alignment. */ return BROTLI_TRUE; } } return BROTLI_TRUE; } #if defined(__cplusplus) || defined(c_plusplus) } /* extern "C" */ #endif
Upload File
Create Folder