diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:23 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:54:44 +0000 |
commit | 836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch) | |
tree | 1604da8f482d02effa033c94a84be42bc0c848c3 /web/server/h2o/libh2o/deps/brotli/enc/block_splitter.h | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip |
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/server/h2o/libh2o/deps/brotli/enc/block_splitter.h')
-rw-r--r-- | web/server/h2o/libh2o/deps/brotli/enc/block_splitter.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/web/server/h2o/libh2o/deps/brotli/enc/block_splitter.h b/web/server/h2o/libh2o/deps/brotli/enc/block_splitter.h deleted file mode 100644 index bbbfda902..000000000 --- a/web/server/h2o/libh2o/deps/brotli/enc/block_splitter.h +++ /dev/null @@ -1,61 +0,0 @@ -/* Copyright 2013 Google Inc. All Rights Reserved. - - Distributed under MIT license. - See file LICENSE for detail or copy at https://opensource.org/licenses/MIT -*/ - -// Block split point selection utilities. - -#ifndef BROTLI_ENC_BLOCK_SPLITTER_H_ -#define BROTLI_ENC_BLOCK_SPLITTER_H_ - -#include <vector> - -#include "./command.h" -#include "./metablock.h" -#include "./types.h" - -namespace brotli { - -struct BlockSplitIterator { - explicit BlockSplitIterator(const BlockSplit& split) - : split_(split), idx_(0), type_(0), length_(0) { - if (!split.lengths.empty()) { - length_ = split.lengths[0]; - } - } - - void Next() { - if (length_ == 0) { - ++idx_; - type_ = split_.types[idx_]; - length_ = split_.lengths[idx_]; - } - --length_; - } - - const BlockSplit& split_; - size_t idx_; - size_t type_; - size_t length_; -}; - -void CopyLiteralsToByteArray(const Command* cmds, - const size_t num_commands, - const uint8_t* data, - const size_t offset, - const size_t mask, - std::vector<uint8_t>* literals); - -void SplitBlock(const Command* cmds, - const size_t num_commands, - const uint8_t* data, - const size_t offset, - const size_t mask, - BlockSplit* literal_split, - BlockSplit* insert_and_copy_split, - BlockSplit* dist_split); - -} // namespace brotli - -#endif // BROTLI_ENC_BLOCK_SPLITTER_H_ |