chore(deps): stop tracking vendored modules
- commit
- bdb7c71a2ff1ba7d0b058ac92dea14f87de2fe68
- author
- brice · · 2026-07-22 07:22 UTC
- parent
- 659be60
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
3329 files · +2 -1396109
M .gitignore +2 -2
| @@ -16,8 +16,8 @@ dumber.exe | |||
| 16 | 16 | # Output of the go coverage tool | |
| 17 | 17 | *.out | |
| 18 | 18 | ||
| 19 | - | # Dependency directories (remove the comment below to include it) | |
| 20 | - | # vendor/ | |
| 19 | + | # Dependency directories | |
| 20 | + | vendor/ | |
| 21 | 21 | ||
| 22 | 22 | # Go workspace file | |
| 23 | 23 | go.work | |
| @@ -16,8 +16,8 @@ dumber.exe | |||||
| 16 | # Output of the go coverage tool | 16 | # Output of the go coverage tool | ||
| 17 | *.out | 17 | *.out | ||
| 18 | 18 | ||||
| 19 | - | # Dependency directories (remove the comment below to include it) | 19 | + | # Dependency directories |
| 20 | - | # vendor/ | 20 | + | vendor/ |
| 21 | 21 | ||||
| 22 | # Go workspace file | 22 | # Go workspace file | ||
| 23 | go.work | 23 | go.work | ||
D vendor/github.com/a-h/parse/.gitignore +0 -1 generated file: collapsed
D vendor/github.com/a-h/parse/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/a-h/parse/README.md +0 -145 generated file: collapsed
D vendor/github.com/a-h/parse/all.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/parse/any.go +0 -22 generated file: collapsed
D vendor/github.com/a-h/parse/convert.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/parse/digits.go +0 -4 generated file: collapsed
D vendor/github.com/a-h/parse/eof.go +0 -15 generated file: collapsed
D vendor/github.com/a-h/parse/error.go +0 -21 generated file: collapsed
D vendor/github.com/a-h/parse/input.go +0 -79 generated file: collapsed
D vendor/github.com/a-h/parse/optional.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/parse/or.go +0 -37 generated file: collapsed
D vendor/github.com/a-h/parse/regexp.go +0 -46 generated file: collapsed
D vendor/github.com/a-h/parse/rune.go +0 -58 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof2.go +0 -27 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof3.go +0 -35 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof4.go +0 -41 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof5.go +0 -48 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof6.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof7.go +0 -62 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof8.go +0 -69 generated file: collapsed
D vendor/github.com/a-h/parse/sequenceof9.go +0 -76 generated file: collapsed
D vendor/github.com/a-h/parse/string.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/parse/stringfrom.go +0 -30 generated file: collapsed
D vendor/github.com/a-h/parse/stringuntil.go +0 -49 generated file: collapsed
D vendor/github.com/a-h/parse/then.go +0 -9 generated file: collapsed
D vendor/github.com/a-h/parse/times.go +0 -83 generated file: collapsed
D vendor/github.com/a-h/parse/tuples.go +0 -69 generated file: collapsed
D vendor/github.com/a-h/parse/types.go +0 -33 generated file: collapsed
D vendor/github.com/a-h/parse/until.go +0 -68 generated file: collapsed
D vendor/github.com/a-h/parse/whitespace.go +0 -29 generated file: collapsed
D vendor/github.com/a-h/templ/.dockerignore +0 -3 generated file: collapsed
D vendor/github.com/a-h/templ/.envrc +0 -1 generated file: collapsed
D vendor/github.com/a-h/templ/.gitignore +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/.goreleaser.yaml +0 -72 generated file: collapsed
D vendor/github.com/a-h/templ/.ignore +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/.version +0 -1 generated file: collapsed
D vendor/github.com/a-h/templ/CODE_OF_CONDUCT.md +0 -128 generated file: collapsed
D vendor/github.com/a-h/templ/CONTRIBUTING.md +0 -247 generated file: collapsed
D vendor/github.com/a-h/templ/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/a-h/templ/README.md +0 -194 generated file: collapsed
D vendor/github.com/a-h/templ/SECURITY.md +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/fmtcmd/main.go +0 -132 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/fmtcmd/testdata.txtar +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/cmd.go +0 -452 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/eventhandler.go +0 -349 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/fatalerror.go +0 -23 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/main.go +0 -237 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/modcheck/modcheck.go +0 -82 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/proxy.go +0 -385 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/proxy/script.js +0 -10 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_unix.go +0 -88 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/run/run_windows.go +0 -75 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/sse/server.go +0 -84 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/generatecmd/watcher/watch.go +0 -166 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/infocmd/main.go +0 -195 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/handler.go +0 -130 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list.templ +0 -22 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/httpdebug/list_templ.go +0 -114 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/main.go +0 -145 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/pls/main.go +0 -128 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/client.go +0 -146 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/diagnosticcache.go +0 -61 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/documentcontents.go +0 -215 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/rewrite.go +0 -24 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/server.go +0 -1464 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/snippets.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/proxy/sourcemapcache.go +0 -60 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/lspcmd/stdrwc.go +0 -50 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/main.go +0 -280 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/processor/processor.go +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/sloghandler/handler.go +0 -120 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation.templ +0 -68 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/sourcemapvisualisation_templ.go +0 -295 generated file: collapsed
D vendor/github.com/a-h/templ/cmd/templ/visualize/types.go +0 -87 generated file: collapsed
D vendor/github.com/a-h/templ/cosign.pub +0 -4 generated file: collapsed
D vendor/github.com/a-h/templ/flake.lock +0 -87 generated file: collapsed
D vendor/github.com/a-h/templ/flake.nix +0 -99 generated file: collapsed
D vendor/github.com/a-h/templ/flush.go +0 -36 generated file: collapsed
D vendor/github.com/a-h/templ/fragment.go +0 -73 generated file: collapsed
D vendor/github.com/a-h/templ/generator/generator.go +0 -1829 generated file: collapsed
D vendor/github.com/a-h/templ/generator/rangewriter.go +0 -122 generated file: collapsed
D vendor/github.com/a-h/templ/handler.go +0 -163 generated file: collapsed
D vendor/github.com/a-h/templ/ide-demo.gif +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/a-h/templ/internal/format/scriptelement.go +0 -96 generated file: collapsed
D vendor/github.com/a-h/templ/internal/format/styleelement.go +0 -25 generated file: collapsed
D vendor/github.com/a-h/templ/internal/format/templ.go +0 -102 generated file: collapsed
D vendor/github.com/a-h/templ/internal/htmlfind/htmlfind.go +0 -67 generated file: collapsed
D vendor/github.com/a-h/templ/internal/imports/process.go +0 -218 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/docheader.go +0 -27 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/docheaderparser.go +0 -53 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/pkgloader.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/pkgtraverser.go +0 -110 generated file: collapsed
D vendor/github.com/a-h/templ/internal/lazyloader/templdoclazyloader.go +0 -161 generated file: collapsed
D vendor/github.com/a-h/templ/internal/prettier/prettier.go +0 -133 generated file: collapsed
D vendor/github.com/a-h/templ/internal/prettier/testdata.txtar +0 -12 generated file: collapsed
D vendor/github.com/a-h/templ/internal/skipdir/skipdir.go +0 -20 generated file: collapsed
D vendor/github.com/a-h/templ/internal/syncmap/map.go +0 -49 generated file: collapsed
D vendor/github.com/a-h/templ/internal/syncset/set.go +0 -42 generated file: collapsed
D vendor/github.com/a-h/templ/join.go +0 -19 generated file: collapsed
D vendor/github.com/a-h/templ/js.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/jsonscript.go +0 -85 generated file: collapsed
D vendor/github.com/a-h/templ/jsonstring.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/LICENSE +0 -29 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/codes.go +0 -86 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/conn.go +0 -244 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/errors.go +0 -70 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/handler.go +0 -120 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/jsonrpc2.go +0 -7 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/message.go +0 -354 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/serve.go +0 -131 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/stream.go +0 -225 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/jsonrpc2/wire.go +0 -140 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/base.go +0 -95 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/basic.go +0 -705 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/callhierarchy.go +0 -103 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/capabilities_client.go +0 -1068 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/capabilities_server.go +0 -523 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/client.go +0 -412 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/context.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/deprecated.go +0 -264 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/diagnostics.go +0 -149 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/doc.go +0 -23 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/errors.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/general.go +0 -461 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/handler.go +0 -88 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/language.go +0 -1401 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/progress.go +0 -119 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/protocol.go +0 -41 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/registration.go +0 -44 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/selectionrange.go +0 -110 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/semantic_token.go +0 -179 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/server.go +0 -1893 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/text.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/util.go +0 -9 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/version.go +0 -7 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/window.go +0 -111 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/protocol/workspace.go +0 -213 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/uri/uri.go +0 -245 generated file: collapsed
D vendor/github.com/a-h/templ/lsp/xcontext/xcontext.go +0 -22 generated file: collapsed
D vendor/github.com/a-h/templ/once.go +0 -63 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/calltemplateparser.go +0 -37 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/childrenparser.go +0 -25 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/conditionalattributeparser.go +0 -103 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/cssparser.go +0 -200 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/diagnostics.go +0 -64 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/doctypeparser.go +0 -33 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/elementparser.go +0 -605 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/expressionparser.go +0 -246 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/fallthroughparser.go +0 -26 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/forexpressionparser.go +0 -57 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/fuzz.sh +0 -5 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/gocodeparser.go +0 -64 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/gocommentparser.go +0 -66 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/fuzz.sh +0 -19 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/parse.go +0 -343 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goexpression/scanner.go +0 -180 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/goparser.go +0 -70 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/htmlcommentparser.go +0 -40 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/ifexpressionparser.go +0 -144 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/packageparser.go +0 -32 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/parser.go +0 -55 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/raw.go +0 -67 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/scriptparser.go +0 -336 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/scripttemplateparser.go +0 -91 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/sourcemap.go +0 -134 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/stringexpressionparser.go +0 -44 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/structure.go +0 -43 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/switchexpressionparser.go +0 -171 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templatefile.go +0 -195 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templateparser.go +0 -154 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/templelementparser.go +0 -59 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/textparser.go +0 -53 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/types.go +0 -1537 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/visitor.go +0 -36 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/visitor/visitor.go +0 -357 generated file: collapsed
D vendor/github.com/a-h/templ/parser/v2/whitespaceparser.go +0 -14 generated file: collapsed
D vendor/github.com/a-h/templ/runtime.go +0 -736 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/buffer.go +0 -62 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/bufferpool.go +0 -38 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/builder.go +0 -8 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/runtime.go +0 -21 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/scriptelement.go +0 -107 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/styleattribute.go +0 -217 generated file: collapsed
D vendor/github.com/a-h/templ/runtime/watchmode.go +0 -181 generated file: collapsed
D vendor/github.com/a-h/templ/safehtml/style.go +0 -199 generated file: collapsed
D vendor/github.com/a-h/templ/scripttemplate.go +0 -150 generated file: collapsed
D vendor/github.com/a-h/templ/templ.png +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/a-h/templ/url.go +0 -31 generated file: collapsed
D vendor/github.com/a-h/templ/version.go +0 -10 generated file: collapsed
D vendor/github.com/a-h/templ/watchmode.go +0 -105 generated file: collapsed
D vendor/github.com/andybalholm/brotli/.gitignore +0 -2 generated file: collapsed
D vendor/github.com/andybalholm/brotli/LICENSE +0 -19 generated file: collapsed
D vendor/github.com/andybalholm/brotli/README.md +0 -19 generated file: collapsed
D vendor/github.com/andybalholm/brotli/backward_references.go +0 -185 generated file: collapsed
D vendor/github.com/andybalholm/brotli/backward_references_hq.go +0 -796 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bit_cost.go +0 -436 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bit_reader.go +0 -266 generated file: collapsed
D vendor/github.com/andybalholm/brotli/bitwriter.go +0 -56 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter.go +0 -144 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_command.go +0 -434 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_distance.go +0 -433 generated file: collapsed
D vendor/github.com/andybalholm/brotli/block_splitter_literal.go +0 -433 generated file: collapsed
D vendor/github.com/andybalholm/brotli/brotli_bit_stream.go +0 -1435 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster.go +0 -30 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_command.go +0 -164 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_distance.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/cluster_literal.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/command.go +0 -254 generated file: collapsed
D vendor/github.com/andybalholm/brotli/compress_fragment.go +0 -834 generated file: collapsed
D vendor/github.com/andybalholm/brotli/compress_fragment_two_pass.go +0 -775 generated file: collapsed
D vendor/github.com/andybalholm/brotli/constants.go +0 -77 generated file: collapsed
D vendor/github.com/andybalholm/brotli/context.go +0 -2176 generated file: collapsed
D vendor/github.com/andybalholm/brotli/decode.go +0 -2570
| @@ -1,2570 +0,0 @@ | |||
| 1 | - | package brotli | |
| 2 | - | ||
| 3 | - | /* Copyright 2013 Google Inc. All Rights Reserved. | |
| 4 | - | ||
| 5 | - | Distributed under MIT license. | |
| 6 | - | See file LICENSE for detail or copy at https://opensource.org/licenses/MIT | |
| 7 | - | */ | |
| 8 | - | ||
| 9 | - | const ( | |
| 10 | - | decoderResultError = 0 | |
| 11 | - | decoderResultSuccess = 1 | |
| 12 | - | decoderResultNeedsMoreInput = 2 | |
| 13 | - | decoderResultNeedsMoreOutput = 3 | |
| 14 | - | ) | |
| 15 | - | ||
| 16 | - | /** | |
| 17 | - | * Error code for detailed logging / production debugging. | |
| 18 | - | * | |
| 19 | - | * See ::BrotliDecoderGetErrorCode and ::BROTLI_LAST_ERROR_CODE. | |
| 20 | - | */ | |
| 21 | - | const ( | |
| 22 | - | decoderNoError = 0 | |
| 23 | - | decoderSuccess = 1 | |
| 24 | - | decoderNeedsMoreInput = 2 | |
| 25 | - | decoderNeedsMoreOutput = 3 | |
| 26 | - | decoderErrorFormatExuberantNibble = -1 | |
| 27 | - | decoderErrorFormatReserved = -2 | |
| 28 | - | decoderErrorFormatExuberantMetaNibble = -3 | |
| 29 | - | decoderErrorFormatSimpleHuffmanAlphabet = -4 | |
| 30 | - | decoderErrorFormatSimpleHuffmanSame = -5 | |
| 31 | - | decoderErrorFormatClSpace = -6 | |
| 32 | - | decoderErrorFormatHuffmanSpace = -7 | |
| 33 | - | decoderErrorFormatContextMapRepeat = -8 | |
| 34 | - | decoderErrorFormatBlockLength1 = -9 | |
| 35 | - | decoderErrorFormatBlockLength2 = -10 | |
| 36 | - | decoderErrorFormatTransform = -11 | |
| 37 | - | decoderErrorFormatDictionary = -12 | |
| 38 | - | decoderErrorFormatWindowBits = -13 | |
| 39 | - | decoderErrorFormatPadding1 = -14 | |
| 40 | - | decoderErrorFormatPadding2 = -15 | |
| 41 | - | decoderErrorFormatDistance = -16 | |
| 42 | - | decoderErrorDictionaryNotSet = -19 | |
| 43 | - | decoderErrorInvalidArguments = -20 | |
| 44 | - | decoderErrorAllocContextModes = -21 | |
| 45 | - | decoderErrorAllocTreeGroups = -22 | |
| 46 | - | decoderErrorAllocContextMap = -25 | |
| 47 | - | decoderErrorAllocRingBuffer1 = -26 | |
| 48 | - | decoderErrorAllocRingBuffer2 = -27 | |
| 49 | - | decoderErrorAllocBlockTypeTrees = -30 | |
| 50 | - | decoderErrorUnreachable = -31 | |
| 51 | - | ) | |
| 52 | - | ||
| 53 | - | const huffmanTableBits = 8 | |
| 54 | - | ||
| 55 | - | const huffmanTableMask = 0xFF | |
| 56 | - | ||
| 57 | - | /* We need the slack region for the following reasons: | |
| 58 | - | - doing up to two 16-byte copies for fast backward copying | |
| 59 | - | - inserting transformed dictionary word (5 prefix + 24 base + 8 suffix) */ | |
| 60 | - | const kRingBufferWriteAheadSlack uint32 = 42 | |
| 61 | - | ||
| 62 | - | var kCodeLengthCodeOrder = [codeLengthCodes]byte{1, 2, 3, 4, 0, 5, 17, 6, 16, 7, 8, 9, 10, 11, 12, 13, 14, 15} | |
| 63 | - | ||
| 64 | - | /* Static prefix code for the complex code length code lengths. */ | |
| 65 | - | var kCodeLengthPrefixLength = [16]byte{2, 2, 2, 3, 2, 2, 2, 4, 2, 2, 2, 3, 2, 2, 2, 4} | |
| 66 | - | ||
| 67 | - | var kCodeLengthPrefixValue = [16]byte{0, 4, 3, 2, 0, 4, 3, 1, 0, 4, 3, 2, 0, 4, 3, 5} | |
| 68 | - | ||
| 69 | - | /* Saves error code and converts it to BrotliDecoderResult. */ | |
| 70 | - | func saveErrorCode(s *Reader, e int) int { | |
| 71 | - | s.error_code = int(e) | |
| 72 | - | switch e { | |
| 73 | - | case decoderSuccess: | |
| 74 | - | return decoderResultSuccess | |
| 75 | - | ||
| 76 | - | case decoderNeedsMoreInput: | |
| 77 | - | return decoderResultNeedsMoreInput | |
| 78 | - | ||
| 79 | - | case decoderNeedsMoreOutput: | |
| 80 | - | return decoderResultNeedsMoreOutput | |
| 81 | - | ||
| 82 | - | default: | |
| 83 | - | return decoderResultError | |
| 84 | - | } | |
| 85 | - | } | |
| 86 | - | ||
| 87 | - | /* Decodes WBITS by reading 1 - 7 bits, or 0x11 for "Large Window Brotli". | |
| 88 | - | Precondition: bit-reader accumulator has at least 8 bits. */ | |
| 89 | - | func decodeWindowBits(s *Reader, br *bitReader) int { | |
| 90 | - | var n uint32 | |
| 91 | - | var large_window bool = s.large_window | |
| 92 | - | s.large_window = false | |
| 93 | - | takeBits(br, 1, &n) | |
| 94 | - | if n == 0 { | |
| 95 | - | s.window_bits = 16 | |
| 96 | - | return decoderSuccess | |
| 97 | - | } | |
| 98 | - | ||
| 99 | - | takeBits(br, 3, &n) | |
| 100 | - | if n != 0 { | |
| 101 | - | s.window_bits = 17 + n | |
| 102 | - | return decoderSuccess | |
| 103 | - | } | |
| 104 | - | ||
| 105 | - | takeBits(br, 3, &n) | |
| 106 | - | if n == 1 { | |
| 107 | - | if large_window { | |
| 108 | - | takeBits(br, 1, &n) | |
| 109 | - | if n == 1 { | |
| 110 | - | return decoderErrorFormatWindowBits | |
| 111 | - | } | |
| 112 | - | ||
| 113 | - | s.large_window = true | |
| 114 | - | return decoderSuccess | |
| 115 | - | } else { | |
| 116 | - | return decoderErrorFormatWindowBits | |
| 117 | - | } | |
| 118 | - | } | |
| 119 | - | ||
| 120 | - | if n != 0 { | |
| 121 | - | s.window_bits = 8 + n | |
| 122 | - | return decoderSuccess | |
| 123 | - | } | |
| 124 | - | ||
| 125 | - | s.window_bits = 17 | |
| 126 | - | return decoderSuccess | |
| 127 | - | } | |
| 128 | - | ||
| 129 | - | /* Decodes a number in the range [0..255], by reading 1 - 11 bits. */ | |
| 130 | - | func decodeVarLenUint8(s *Reader, br *bitReader, value *uint32) int { | |
| 131 | - | var bits uint32 | |
| 132 | - | switch s.substate_decode_uint8 { | |
| 133 | - | case stateDecodeUint8None: | |
| 134 | - | if !safeReadBits(br, 1, &bits) { | |
| 135 | - | return decoderNeedsMoreInput | |
| 136 | - | } | |
| 137 | - | ||
| 138 | - | if bits == 0 { | |
| 139 | - | *value = 0 | |
| 140 | - | return decoderSuccess | |
| 141 | - | } | |
| 142 | - | fallthrough | |
| 143 | - | ||
| 144 | - | /* Fall through. */ | |
| 145 | - | case stateDecodeUint8Short: | |
| 146 | - | if !safeReadBits(br, 3, &bits) { | |
| 147 | - | s.substate_decode_uint8 = stateDecodeUint8Short | |
| 148 | - | return decoderNeedsMoreInput | |
| 149 | - | } | |
| 150 | - | ||
| 151 | - | if bits == 0 { | |
| 152 | - | *value = 1 | |
| 153 | - | s.substate_decode_uint8 = stateDecodeUint8None | |
| 154 | - | return decoderSuccess | |
| 155 | - | } | |
| 156 | - | ||
| 157 | - | /* Use output value as a temporary storage. It MUST be persisted. */ | |
| 158 | - | *value = bits | |
| 159 | - | fallthrough | |
| 160 | - | ||
| 161 | - | /* Fall through. */ | |
| 162 | - | case stateDecodeUint8Long: | |
| 163 | - | if !safeReadBits(br, *value, &bits) { | |
| 164 | - | s.substate_decode_uint8 = stateDecodeUint8Long | |
| 165 | - | return decoderNeedsMoreInput | |
| 166 | - | } | |
| 167 | - | ||
| 168 | - | *value = (1 << *value) + bits | |
| 169 | - | s.substate_decode_uint8 = stateDecodeUint8None | |
| 170 | - | return decoderSuccess | |
| 171 | - | ||
| 172 | - | default: | |
| 173 | - | return decoderErrorUnreachable | |
| 174 | - | } | |
| 175 | - | } | |
| 176 | - | ||
| 177 | - | /* Decodes a metablock length and flags by reading 2 - 31 bits. */ | |
| 178 | - | func decodeMetaBlockLength(s *Reader, br *bitReader) int { | |
| 179 | - | var bits uint32 | |
| 180 | - | var i int | |
| 181 | - | for { | |
| 182 | - | switch s.substate_metablock_header { | |
| 183 | - | case stateMetablockHeaderNone: | |
| 184 | - | if !safeReadBits(br, 1, &bits) { | |
| 185 | - | return decoderNeedsMoreInput | |
| 186 | - | } | |
| 187 | - | ||
| 188 | - | if bits != 0 { | |
| 189 | - | s.is_last_metablock = 1 | |
| 190 | - | } else { | |
| 191 | - | s.is_last_metablock = 0 | |
| 192 | - | } | |
| 193 | - | s.meta_block_remaining_len = 0 | |
| 194 | - | s.is_uncompressed = 0 | |
| 195 | - | s.is_metadata = 0 | |
| 196 | - | if s.is_last_metablock == 0 { | |
| 197 | - | s.substate_metablock_header = stateMetablockHeaderNibbles | |
| 198 | - | break | |
| 199 | - | } | |
| 200 | - | ||
| 201 | - | s.substate_metablock_header = stateMetablockHeaderEmpty | |
| 202 | - | fallthrough | |
| 203 | - | ||
| 204 | - | /* Fall through. */ | |
| 205 | - | case stateMetablockHeaderEmpty: | |
| 206 | - | if !safeReadBits(br, 1, &bits) { | |
| 207 | - | return decoderNeedsMoreInput | |
| 208 | - | } | |
| 209 | - | ||
| 210 | - | if bits != 0 { | |
| 211 | - | s.substate_metablock_header = stateMetablockHeaderNone | |
| 212 | - | return decoderSuccess | |
| 213 | - | } | |
| 214 | - | ||
| 215 | - | s.substate_metablock_header = stateMetablockHeaderNibbles | |
| 216 | - | fallthrough | |
| 217 | - | ||
| 218 | - | /* Fall through. */ | |
| 219 | - | case stateMetablockHeaderNibbles: | |
| 220 | - | if !safeReadBits(br, 2, &bits) { | |
| 221 | - | return decoderNeedsMoreInput | |
| 222 | - | } | |
| 223 | - | ||
| 224 | - | s.size_nibbles = uint(byte(bits + 4)) | |
| 225 | - | s.loop_counter = 0 | |
| 226 | - | if bits == 3 { | |
| 227 | - | s.is_metadata = 1 | |
| 228 | - | s.substate_metablock_header = stateMetablockHeaderReserved | |
| 229 | - | break | |
| 230 | - | } | |
| 231 | - | ||
| 232 | - | s.substate_metablock_header = stateMetablockHeaderSize | |
| 233 | - | fallthrough | |
| 234 | - | ||
| 235 | - | /* Fall through. */ | |
| 236 | - | case stateMetablockHeaderSize: | |
| 237 | - | i = s.loop_counter | |
| 238 | - | ||
| 239 | - | for ; i < int(s.size_nibbles); i++ { | |
| 240 | - | if !safeReadBits(br, 4, &bits) { | |
| 241 | - | s.loop_counter = i | |
| 242 | - | return decoderNeedsMoreInput | |
| 243 | - | } | |
| 244 | - | ||
| 245 | - | if uint(i+1) == s.size_nibbles && s.size_nibbles > 4 && bits == 0 { | |
| 246 | - | return decoderErrorFormatExuberantNibble | |
| 247 | - | } | |
| 248 | - | ||
| 249 | - | s.meta_block_remaining_len |= int(bits << uint(i*4)) | |
| 250 | - | } | |
| 251 | - | ||
| 252 | - | s.substate_metablock_header = stateMetablockHeaderUncompressed | |
| 253 | - | fallthrough | |
| 254 | - | ||
| 255 | - | /* Fall through. */ | |
| 256 | - | case stateMetablockHeaderUncompressed: | |
| 257 | - | if s.is_last_metablock == 0 { | |
| 258 | - | if !safeReadBits(br, 1, &bits) { | |
| 259 | - | return decoderNeedsMoreInput | |
| 260 | - | } | |
| 261 | - | ||
| 262 | - | if bits != 0 { | |
| 263 | - | s.is_uncompressed = 1 | |
| 264 | - | } else { | |
| 265 | - | s.is_uncompressed = 0 | |
| 266 | - | } | |
| 267 | - | } | |
| 268 | - | ||
| 269 | - | s.meta_block_remaining_len++ | |
| 270 | - | s.substate_metablock_header = stateMetablockHeaderNone | |
| 271 | - | return decoderSuccess | |
| 272 | - | ||
| 273 | - | case stateMetablockHeaderReserved: | |
| 274 | - | if !safeReadBits(br, 1, &bits) { | |
| 275 | - | return decoderNeedsMoreInput | |
| 276 | - | } | |
| 277 | - | ||
| 278 | - | if bits != 0 { | |
| 279 | - | return decoderErrorFormatReserved | |
| 280 | - | } | |
| 281 | - | ||
| 282 | - | s.substate_metablock_header = stateMetablockHeaderBytes | |
| 283 | - | fallthrough | |
| 284 | - | ||
| 285 | - | /* Fall through. */ | |
| 286 | - | case stateMetablockHeaderBytes: | |
| 287 | - | if !safeReadBits(br, 2, &bits) { | |
| 288 | - | return decoderNeedsMoreInput | |
| 289 | - | } | |
| 290 | - | ||
| 291 | - | if bits == 0 { | |
| 292 | - | s.substate_metablock_header = stateMetablockHeaderNone | |
| 293 | - | return decoderSuccess | |
| 294 | - | } | |
| 295 | - | ||
| 296 | - | s.size_nibbles = uint(byte(bits)) | |
| 297 | - | s.substate_metablock_header = stateMetablockHeaderMetadata | |
| 298 | - | fallthrough | |
| 299 | - | ||
| 300 | - | /* Fall through. */ | |
| 301 | - | case stateMetablockHeaderMetadata: | |
| 302 | - | i = s.loop_counter | |
| 303 | - | ||
| 304 | - | for ; i < int(s.size_nibbles); i++ { | |
| 305 | - | if !safeReadBits(br, 8, &bits) { | |
| 306 | - | s.loop_counter = i | |
| 307 | - | return decoderNeedsMoreInput | |
| 308 | - | } | |
| 309 | - | ||
| 310 | - | if uint(i+1) == s.size_nibbles && s.size_nibbles > 1 && bits == 0 { | |
| 311 | - | return decoderErrorFormatExuberantMetaNibble | |
| 312 | - | } | |
| 313 | - | ||
| 314 | - | s.meta_block_remaining_len |= int(bits << uint(i*8)) | |
| 315 | - | } | |
| 316 | - | ||
| 317 | - | s.meta_block_remaining_len++ | |
| 318 | - | s.substate_metablock_header = stateMetablockHeaderNone | |
| 319 | - | return decoderSuccess | |
| 320 | - | ||
| 321 | - | default: | |
| 322 | - | return decoderErrorUnreachable | |
| 323 | - | } | |
| 324 | - | } | |
| 325 | - | } | |
| 326 | - | ||
| 327 | - | /* Decodes the Huffman code. | |
| 328 | - | This method doesn't read data from the bit reader, BUT drops the amount of | |
| 329 | - | bits that correspond to the decoded symbol. | |
| 330 | - | bits MUST contain at least 15 (BROTLI_HUFFMAN_MAX_CODE_LENGTH) valid bits. */ | |
| 331 | - | func decodeSymbol(bits uint32, table []huffmanCode, br *bitReader) uint32 { | |
| 332 | - | table = table[bits&huffmanTableMask:] | |
| 333 | - | if table[0].bits > huffmanTableBits { | |
| 334 | - | var nbits uint32 = uint32(table[0].bits) - huffmanTableBits | |
| 335 | - | dropBits(br, huffmanTableBits) | |
| 336 | - | table = table[uint32(table[0].value)+((bits>>huffmanTableBits)&bitMask(nbits)):] | |
| 337 | - | } | |
| 338 | - | ||
| 339 | - | dropBits(br, uint32(table[0].bits)) | |
| 340 | - | return uint32(table[0].value) | |
| 341 | - | } | |
| 342 | - | ||
| 343 | - | /* Reads and decodes the next Huffman code from bit-stream. | |
| 344 | - | This method peeks 16 bits of input and drops 0 - 15 of them. */ | |
| 345 | - | func readSymbol(table []huffmanCode, br *bitReader) uint32 { | |
| 346 | - | return decodeSymbol(get16BitsUnmasked(br), table, br) | |
| 347 | - | } | |
| 348 | - | ||
| 349 | - | /* Same as DecodeSymbol, but it is known that there is less than 15 bits of | |
| 350 | - | input are currently available. */ | |
| 351 | - | func safeDecodeSymbol(table []huffmanCode, br *bitReader, result *uint32) bool { | |
| 352 | - | var val uint32 | |
| 353 | - | var available_bits uint32 = getAvailableBits(br) | |
| 354 | - | if available_bits == 0 { | |
| 355 | - | if table[0].bits == 0 { | |
| 356 | - | *result = uint32(table[0].value) | |
| 357 | - | return true | |
| 358 | - | } | |
| 359 | - | ||
| 360 | - | return false /* No valid bits at all. */ | |
| 361 | - | } | |
| 362 | - | ||
| 363 | - | val = uint32(getBitsUnmasked(br)) | |
| 364 | - | table = table[val&huffmanTableMask:] | |
| 365 | - | if table[0].bits <= huffmanTableBits { | |
| 366 | - | if uint32(table[0].bits) <= available_bits { | |
| 367 | - | dropBits(br, uint32(table[0].bits)) | |
| 368 | - | *result = uint32(table[0].value) | |
| 369 | - | return true | |
| 370 | - | } else { | |
| 371 | - | return false /* Not enough bits for the first level. */ | |
| 372 | - | } | |
| 373 | - | } | |
| 374 | - | ||
| 375 | - | if available_bits <= huffmanTableBits { | |
| 376 | - | return false /* Not enough bits to move to the second level. */ | |
| 377 | - | } | |
| 378 | - | ||
| 379 | - | /* Speculatively drop HUFFMAN_TABLE_BITS. */ | |
| 380 | - | val = (val & bitMask(uint32(table[0].bits))) >> huffmanTableBits | |
| 381 | - | ||
| 382 | - | available_bits -= huffmanTableBits | |
| 383 | - | table = table[uint32(table[0].value)+val:] | |
| 384 | - | if available_bits < uint32(table[0].bits) { | |
| 385 | - | return false /* Not enough bits for the second level. */ | |
| 386 | - | } | |
| 387 | - | ||
| 388 | - | dropBits(br, huffmanTableBits+uint32(table[0].bits)) | |
| 389 | - | *result = uint32(table[0].value) | |
| 390 | - | return true | |
| 391 | - | } | |
| 392 | - | ||
| 393 | - | func safeReadSymbol(table []huffmanCode, br *bitReader, result *uint32) bool { | |
| 394 | - | var val uint32 | |
| 395 | - | if safeGetBits(br, 15, &val) { | |
| 396 | - | *result = decodeSymbol(val, table, br) | |
| 397 | - | return true | |
| 398 | - | } | |
| 399 | - | ||
| 400 | - | return safeDecodeSymbol(table, br, result) | |
| 401 | - | } | |
| 402 | - | ||
| 403 | - | /* Makes a look-up in first level Huffman table. Peeks 8 bits. */ | |
| 404 | - | func preloadSymbol(safe int, table []huffmanCode, br *bitReader, bits *uint32, value *uint32) { | |
| 405 | - | if safe != 0 { | |
| 406 | - | return | |
| 407 | - | } | |
| 408 | - | ||
| 409 | - | table = table[getBits(br, huffmanTableBits):] | |
| 410 | - | *bits = uint32(table[0].bits) | |
| 411 | - | *value = uint32(table[0].value) | |
| 412 | - | } | |
| 413 | - | ||
| 414 | - | /* Decodes the next Huffman code using data prepared by PreloadSymbol. | |
| 415 | - | Reads 0 - 15 bits. Also peeks 8 following bits. */ | |
| 416 | - | func readPreloadedSymbol(table []huffmanCode, br *bitReader, bits *uint32, value *uint32) uint32 { | |
| 417 | - | var result uint32 = *value | |
| 418 | - | var ext []huffmanCode | |
| 419 | - | if *bits > huffmanTableBits { | |
| 420 | - | var val uint32 = get16BitsUnmasked(br) | |
| 421 | - | ext = table[val&huffmanTableMask:][*value:] | |
| 422 | - | var mask uint32 = bitMask((*bits - huffmanTableBits)) | |
| 423 | - | dropBits(br, huffmanTableBits) | |
| 424 | - | ext = ext[(val>>huffmanTableBits)&mask:] | |
| 425 | - | dropBits(br, uint32(ext[0].bits)) | |
| 426 | - | result = uint32(ext[0].value) | |
| 427 | - | } else { | |
| 428 | - | dropBits(br, *bits) | |
| 429 | - | } | |
| 430 | - | ||
| 431 | - | preloadSymbol(0, table, br, bits, value) | |
| 432 | - | return result | |
| 433 | - | } | |
| 434 | - | ||
| 435 | - | func log2Floor(x uint32) uint32 { | |
| 436 | - | var result uint32 = 0 | |
| 437 | - | for x != 0 { | |
| 438 | - | x >>= 1 | |
| 439 | - | result++ | |
| 440 | - | } | |
| 441 | - | ||
| 442 | - | return result | |
| 443 | - | } | |
| 444 | - | ||
| 445 | - | /* Reads (s->symbol + 1) symbols. | |
| 446 | - | Totally 1..4 symbols are read, 1..11 bits each. | |
| 447 | - | The list of symbols MUST NOT contain duplicates. */ | |
| 448 | - | func readSimpleHuffmanSymbols(alphabet_size uint32, max_symbol uint32, s *Reader) int { | |
| 449 | - | var br *bitReader = &s.br | |
| 450 | - | var max_bits uint32 = log2Floor(alphabet_size - 1) | |
| 451 | - | var i uint32 = s.sub_loop_counter | |
| 452 | - | /* max_bits == 1..11; symbol == 0..3; 1..44 bits will be read. */ | |
| 453 | - | ||
| 454 | - | var num_symbols uint32 = s.symbol | |
| 455 | - | for i <= num_symbols { | |
| 456 | - | var v uint32 | |
| 457 | - | if !safeReadBits(br, max_bits, &v) { | |
| 458 | - | s.sub_loop_counter = i | |
| 459 | - | s.substate_huffman = stateHuffmanSimpleRead | |
| 460 | - | return decoderNeedsMoreInput | |
| 461 | - | } | |
| 462 | - | ||
| 463 | - | if v >= max_symbol { | |
| 464 | - | return decoderErrorFormatSimpleHuffmanAlphabet | |
| 465 | - | } | |
| 466 | - | ||
| 467 | - | s.symbols_lists_array[i] = uint16(v) | |
| 468 | - | i++ | |
| 469 | - | } | |
| 470 | - | ||
| 471 | - | for i = 0; i < num_symbols; i++ { | |
| 472 | - | var k uint32 = i + 1 | |
| 473 | - | for ; k <= num_symbols; k++ { | |
| 474 | - | if s.symbols_lists_array[i] == s.symbols_lists_array[k] { | |
| 475 | - | return decoderErrorFormatSimpleHuffmanSame | |
| 476 | - | } | |
| 477 | - | } | |
| 478 | - | } | |
| 479 | - | ||
| 480 | - | return decoderSuccess | |
| 481 | - | } | |
| 482 | - | ||
| 483 | - | /* Process single decoded symbol code length: | |
| 484 | - | A) reset the repeat variable | |
| 485 | - | B) remember code length (if it is not 0) | |
| 486 | - | C) extend corresponding index-chain | |
| 487 | - | D) reduce the Huffman space | |
| 488 | - | E) update the histogram */ | |
| 489 | - | func processSingleCodeLength(code_len uint32, symbol *uint32, repeat *uint32, space *uint32, prev_code_len *uint32, symbol_lists symbolList, code_length_histo []uint16, next_symbol []int) { | |
| 490 | - | *repeat = 0 | |
| 491 | - | if code_len != 0 { /* code_len == 1..15 */ | |
| 492 | - | symbolListPut(symbol_lists, next_symbol[code_len], uint16(*symbol)) | |
| 493 | - | next_symbol[code_len] = int(*symbol) | |
| 494 | - | *prev_code_len = code_len | |
| 495 | - | *space -= 32768 >> code_len | |
| 496 | - | code_length_histo[code_len]++ | |
| 497 | - | } | |
| 498 | - | ||
| 499 | - | (*symbol)++ | |
| 500 | - | } | |
| 501 | - | ||
| 502 | - | /* Process repeated symbol code length. | |
| 503 | - | A) Check if it is the extension of previous repeat sequence; if the decoded | |
| 504 | - | value is not BROTLI_REPEAT_PREVIOUS_CODE_LENGTH, then it is a new | |
| 505 | - | symbol-skip | |
| 506 | - | B) Update repeat variable | |
| 507 | - | C) Check if operation is feasible (fits alphabet) | |
| 508 | - | D) For each symbol do the same operations as in ProcessSingleCodeLength | |
| 509 | - | ||
| 510 | - | PRECONDITION: code_len == BROTLI_REPEAT_PREVIOUS_CODE_LENGTH or | |
| 511 | - | code_len == BROTLI_REPEAT_ZERO_CODE_LENGTH */ | |
| 512 | - | func processRepeatedCodeLength(code_len uint32, repeat_delta uint32, alphabet_size uint32, symbol *uint32, repeat *uint32, space *uint32, prev_code_len *uint32, repeat_code_len *uint32, symbol_lists symbolList, code_length_histo []uint16, next_symbol []int) { | |
| 513 | - | var old_repeat uint32 /* for BROTLI_REPEAT_ZERO_CODE_LENGTH */ /* for BROTLI_REPEAT_ZERO_CODE_LENGTH */ | |
| 514 | - | var extra_bits uint32 = 3 | |
| 515 | - | var new_len uint32 = 0 | |
| 516 | - | if code_len == repeatPreviousCodeLength { | |
| 517 | - | new_len = *prev_code_len | |
| 518 | - | extra_bits = 2 | |
| 519 | - | } | |
| 520 | - | ||
| 521 | - | if *repeat_code_len != new_len { | |
| 522 | - | *repeat = 0 | |
| 523 | - | *repeat_code_len = new_len | |
| 524 | - | } | |
| 525 | - | ||
| 526 | - | old_repeat = *repeat | |
| 527 | - | if *repeat > 0 { | |
| 528 | - | *repeat -= 2 | |
| 529 | - | *repeat <<= extra_bits | |
| 530 | - | } | |
| 531 | - | ||
| 532 | - | *repeat += repeat_delta + 3 | |
| 533 | - | repeat_delta = *repeat - old_repeat | |
| 534 | - | if *symbol+repeat_delta > alphabet_size { | |
| 535 | - | *symbol = alphabet_size | |
| 536 | - | *space = 0xFFFFF | |
| 537 | - | return | |
| 538 | - | } | |
| 539 | - | ||
| 540 | - | if *repeat_code_len != 0 { | |
| 541 | - | var last uint = uint(*symbol + repeat_delta) | |
| 542 | - | var next int = next_symbol[*repeat_code_len] | |
| 543 | - | for { | |
| 544 | - | symbolListPut(symbol_lists, next, uint16(*symbol)) | |
| 545 | - | next = int(*symbol) | |
| 546 | - | (*symbol)++ | |
| 547 | - | if (*symbol) == uint32(last) { | |
| 548 | - | break | |
| 549 | - | } | |
| 550 | - | } | |
| 551 | - | ||
| 552 | - | next_symbol[*repeat_code_len] = next | |
| 553 | - | *space -= repeat_delta << (15 - *repeat_code_len) | |
| 554 | - | code_length_histo[*repeat_code_len] = uint16(uint32(code_length_histo[*repeat_code_len]) + repeat_delta) | |
| 555 | - | } else { | |
| 556 | - | *symbol += repeat_delta | |
| 557 | - | } | |
| 558 | - | } | |
| 559 | - | ||
| 560 | - | /* Reads and decodes symbol codelengths. */ | |
| 561 | - | func readSymbolCodeLengths(alphabet_size uint32, s *Reader) int { | |
| 562 | - | var br *bitReader = &s.br | |
| 563 | - | var symbol uint32 = s.symbol | |
| 564 | - | var repeat uint32 = s.repeat | |
| 565 | - | var space uint32 = s.space | |
| 566 | - | var prev_code_len uint32 = s.prev_code_len | |
| 567 | - | var repeat_code_len uint32 = s.repeat_code_len | |
| 568 | - | var symbol_lists symbolList = s.symbol_lists | |
| 569 | - | var code_length_histo []uint16 = s.code_length_histo[:] | |
| 570 | - | var next_symbol []int = s.next_symbol[:] | |
| 571 | - | if !warmupBitReader(br) { | |
| 572 | - | return decoderNeedsMoreInput | |
| 573 | - | } | |
| 574 | - | var p []huffmanCode | |
| 575 | - | for symbol < alphabet_size && space > 0 { | |
| 576 | - | p = s.table[:] | |
| 577 | - | var code_len uint32 | |
| 578 | - | if !checkInputAmount(br, shortFillBitWindowRead) { | |
| 579 | - | s.symbol = symbol | |
| 580 | - | s.repeat = repeat | |
| 581 | - | s.prev_code_len = prev_code_len | |
| 582 | - | s.repeat_code_len = repeat_code_len | |
| 583 | - | s.space = space | |
| 584 | - | return decoderNeedsMoreInput | |
| 585 | - | } | |
| 586 | - | ||
| 587 | - | fillBitWindow16(br) | |
| 588 | - | p = p[getBitsUnmasked(br)&uint64(bitMask(huffmanMaxCodeLengthCodeLength)):] | |
| 589 | - | dropBits(br, uint32(p[0].bits)) /* Use 1..5 bits. */ | |
| 590 | - | code_len = uint32(p[0].value) /* code_len == 0..17 */ | |
| 591 | - | if code_len < repeatPreviousCodeLength { | |
| 592 | - | processSingleCodeLength(code_len, &symbol, &repeat, &space, &prev_code_len, symbol_lists, code_length_histo, next_symbol) /* code_len == 16..17, extra_bits == 2..3 */ | |
| 593 | - | } else { | |
| 594 | - | var extra_bits uint32 | |
| 595 | - | if code_len == repeatPreviousCodeLength { | |
| 596 | - | extra_bits = 2 | |
| 597 | - | } else { | |
| 598 | - | extra_bits = 3 | |
| 599 | - | } | |
| 600 | - | var repeat_delta uint32 = uint32(getBitsUnmasked(br)) & bitMask(extra_bits) | |
| 601 | - | dropBits(br, extra_bits) | |
| 602 | - | processRepeatedCodeLength(code_len, repeat_delta, alphabet_size, &symbol, &repeat, &space, &prev_code_len, &repeat_code_len, symbol_lists, code_length_histo, next_symbol) | |
| 603 | - | } | |
| 604 | - | } | |
| 605 | - | ||
| 606 | - | s.space = space | |
| 607 | - | return decoderSuccess | |
| 608 | - | } | |
| 609 | - | ||
| 610 | - | func safeReadSymbolCodeLengths(alphabet_size uint32, s *Reader) int { | |
| 611 | - | var br *bitReader = &s.br | |
| 612 | - | var get_byte bool = false | |
| 613 | - | var p []huffmanCode | |
| 614 | - | for s.symbol < alphabet_size && s.space > 0 { | |
| 615 | - | p = s.table[:] | |
| 616 | - | var code_len uint32 | |
| 617 | - | var available_bits uint32 | |
| 618 | - | var bits uint32 = 0 | |
| 619 | - | if get_byte && !pullByte(br) { | |
| 620 | - | return decoderNeedsMoreInput | |
| 621 | - | } | |
| 622 | - | get_byte = false | |
| 623 | - | available_bits = getAvailableBits(br) | |
| 624 | - | if available_bits != 0 { | |
| 625 | - | bits = uint32(getBitsUnmasked(br)) | |
| 626 | - | } | |
| 627 | - | ||
| 628 | - | p = p[bits&bitMask(huffmanMaxCodeLengthCodeLength):] | |
| 629 | - | if uint32(p[0].bits) > available_bits { | |
| 630 | - | get_byte = true | |
| 631 | - | continue | |
| 632 | - | } | |
| 633 | - | ||
| 634 | - | code_len = uint32(p[0].value) /* code_len == 0..17 */ | |
| 635 | - | if code_len < repeatPreviousCodeLength { | |
| 636 | - | dropBits(br, uint32(p[0].bits)) | |
| 637 | - | processSingleCodeLength(code_len, &s.symbol, &s.repeat, &s.space, &s.prev_code_len, s.symbol_lists, s.code_length_histo[:], s.next_symbol[:]) /* code_len == 16..17, extra_bits == 2..3 */ | |
| 638 | - | } else { | |
| 639 | - | var extra_bits uint32 = code_len - 14 | |
| 640 | - | var repeat_delta uint32 = (bits >> p[0].bits) & bitMask(extra_bits) | |
| 641 | - | if available_bits < uint32(p[0].bits)+extra_bits { | |
| 642 | - | get_byte = true | |
| 643 | - | continue | |
| 644 | - | } | |
| 645 | - | ||
| 646 | - | dropBits(br, uint32(p[0].bits)+extra_bits) | |
| 647 | - | processRepeatedCodeLength(code_len, repeat_delta, alphabet_size, &s.symbol, &s.repeat, &s.space, &s.prev_code_len, &s.repeat_code_len, s.symbol_lists, s.code_length_histo[:], s.next_symbol[:]) | |
| 648 | - | } | |
| 649 | - | } | |
| 650 | - | ||
| 651 | - | return decoderSuccess | |
| 652 | - | } | |
| 653 | - | ||
| 654 | - | /* Reads and decodes 15..18 codes using static prefix code. | |
| 655 | - | Each code is 2..4 bits long. In total 30..72 bits are used. */ | |
| 656 | - | func readCodeLengthCodeLengths(s *Reader) int { | |
| 657 | - | var br *bitReader = &s.br | |
| 658 | - | var num_codes uint32 = s.repeat | |
| 659 | - | var space uint32 = s.space | |
| 660 | - | var i uint32 = s.sub_loop_counter | |
| 661 | - | for ; i < codeLengthCodes; i++ { | |
| 662 | - | var code_len_idx byte = kCodeLengthCodeOrder[i] | |
| 663 | - | var ix uint32 | |
| 664 | - | var v uint32 | |
| 665 | - | if !safeGetBits(br, 4, &ix) { | |
| 666 | - | var available_bits uint32 = getAvailableBits(br) | |
| 667 | - | if available_bits != 0 { | |
| 668 | - | ix = uint32(getBitsUnmasked(br) & 0xF) | |
| 669 | - | } else { | |
| 670 | - | ix = 0 | |
| 671 | - | } | |
| 672 | - | ||
| 673 | - | if uint32(kCodeLengthPrefixLength[ix]) > available_bits { | |
| 674 | - | s.sub_loop_counter = i | |
| 675 | - | s.repeat = num_codes | |
| 676 | - | s.space = space | |
| 677 | - | s.substate_huffman = stateHuffmanComplex | |
| 678 | - | return decoderNeedsMoreInput | |
| 679 | - | } | |
| 680 | - | } | |
| 681 | - | ||
| 682 | - | v = uint32(kCodeLengthPrefixValue[ix]) | |
| 683 | - | dropBits(br, uint32(kCodeLengthPrefixLength[ix])) | |
| 684 | - | s.code_length_code_lengths[code_len_idx] = byte(v) | |
| 685 | - | if v != 0 { | |
| 686 | - | space = space - (32 >> v) | |
| 687 | - | num_codes++ | |
| 688 | - | s.code_length_histo[v]++ | |
| 689 | - | if space-1 >= 32 { | |
| 690 | - | /* space is 0 or wrapped around. */ | |
| 691 | - | break | |
| 692 | - | } | |
| 693 | - | } | |
| 694 | - | } | |
| 695 | - | ||
| 696 | - | if num_codes != 1 && space != 0 { | |
| 697 | - | return decoderErrorFormatClSpace | |
| 698 | - | } | |
| 699 | - | ||
| 700 | - | return decoderSuccess | |
| 701 | - | } | |
| 702 | - | ||
| 703 | - | /* Decodes the Huffman tables. | |
| 704 | - | There are 2 scenarios: | |
| 705 | - | A) Huffman code contains only few symbols (1..4). Those symbols are read | |
| 706 | - | directly; their code lengths are defined by the number of symbols. | |
| 707 | - | For this scenario 4 - 49 bits will be read. | |
| 708 | - | ||
| 709 | - | B) 2-phase decoding: | |
| 710 | - | B.1) Small Huffman table is decoded; it is specified with code lengths | |
| 711 | - | encoded with predefined entropy code. 32 - 74 bits are used. | |
| 712 | - | B.2) Decoded table is used to decode code lengths of symbols in resulting | |
| 713 | - | Huffman table. In worst case 3520 bits are read. */ | |
| 714 | - | func readHuffmanCode(alphabet_size uint32, max_symbol uint32, table []huffmanCode, opt_table_size *uint32, s *Reader) int { | |
| 715 | - | var br *bitReader = &s.br | |
| 716 | - | ||
| 717 | - | /* Unnecessary masking, but might be good for safety. */ | |
| 718 | - | alphabet_size &= 0x7FF | |
| 719 | - | ||
| 720 | - | /* State machine. */ | |
| 721 | - | for { | |
| 722 | - | switch s.substate_huffman { | |
| 723 | - | case stateHuffmanNone: | |
| 724 | - | if !safeReadBits(br, 2, &s.sub_loop_counter) { | |
| 725 | - | return decoderNeedsMoreInput | |
| 726 | - | } | |
| 727 | - | ||
| 728 | - | /* The value is used as follows: | |
| 729 | - | 1 for simple code; | |
| 730 | - | 0 for no skipping, 2 skips 2 code lengths, 3 skips 3 code lengths */ | |
| 731 | - | if s.sub_loop_counter != 1 { | |
| 732 | - | s.space = 32 | |
| 733 | - | s.repeat = 0 /* num_codes */ | |
| 734 | - | var i int | |
| 735 | - | for i = 0; i <= huffmanMaxCodeLengthCodeLength; i++ { | |
| 736 | - | s.code_length_histo[i] = 0 | |
| 737 | - | } | |
| 738 | - | ||
| 739 | - | for i = 0; i < codeLengthCodes; i++ { | |
| 740 | - | s.code_length_code_lengths[i] = 0 | |
| 741 | - | } | |
| 742 | - | ||
| 743 | - | s.substate_huffman = stateHuffmanComplex | |
| 744 | - | continue | |
| 745 | - | } | |
| 746 | - | fallthrough | |
| 747 | - | ||
| 748 | - | /* Read symbols, codes & code lengths directly. */ | |
| 749 | - | case stateHuffmanSimpleSize: | |
| 750 | - | if !safeReadBits(br, 2, &s.symbol) { /* num_symbols */ | |
| 751 | - | s.substate_huffman = stateHuffmanSimpleSize | |
| 752 | - | return decoderNeedsMoreInput | |
| 753 | - | } | |
| 754 | - | ||
| 755 | - | s.sub_loop_counter = 0 | |
| 756 | - | fallthrough | |
| 757 | - | ||
| 758 | - | case stateHuffmanSimpleRead: | |
| 759 | - | { | |
| 760 | - | var result int = readSimpleHuffmanSymbols(alphabet_size, max_symbol, s) | |
| 761 | - | if result != decoderSuccess { | |
| 762 | - | return result | |
| 763 | - | } | |
| 764 | - | } | |
| 765 | - | fallthrough | |
| 766 | - | ||
| 767 | - | case stateHuffmanSimpleBuild: | |
| 768 | - | var table_size uint32 | |
| 769 | - | if s.symbol == 3 { | |
| 770 | - | var bits uint32 | |
| 771 | - | if !safeReadBits(br, 1, &bits) { | |
| 772 | - | s.substate_huffman = stateHuffmanSimpleBuild | |
| 773 | - | return decoderNeedsMoreInput | |
| 774 | - | } | |
| 775 | - | ||
| 776 | - | s.symbol += bits | |
| 777 | - | } | |
| 778 | - | ||
| 779 | - | table_size = buildSimpleHuffmanTable(table, huffmanTableBits, s.symbols_lists_array[:], s.symbol) | |
| 780 | - | if opt_table_size != nil { | |
| 781 | - | *opt_table_size = table_size | |
| 782 | - | } | |
| 783 | - | ||
| 784 | - | s.substate_huffman = stateHuffmanNone | |
| 785 | - | return decoderSuccess | |
| 786 | - | ||
| 787 | - | /* Decode Huffman-coded code lengths. */ | |
| 788 | - | case stateHuffmanComplex: | |
| 789 | - | { | |
| 790 | - | var i uint32 | |
| 791 | - | var result int = readCodeLengthCodeLengths(s) | |
| 792 | - | if result != decoderSuccess { | |
| 793 | - | return result | |
| 794 | - | } | |
| 795 | - | ||
| 796 | - | buildCodeLengthsHuffmanTable(s.table[:], s.code_length_code_lengths[:], s.code_length_histo[:]) | |
| 797 | - | for i = 0; i < 16; i++ { | |
| 798 | - | s.code_length_histo[i] = 0 | |
| 799 | - | } | |
| 800 | - | ||
| 801 | - | for i = 0; i <= huffmanMaxCodeLength; i++ { | |
| 802 | - | s.next_symbol[i] = int(i) - (huffmanMaxCodeLength + 1) | |
| 803 | - | symbolListPut(s.symbol_lists, s.next_symbol[i], 0xFFFF) | |
| 804 | - | } | |
| 805 | - | ||
| 806 | - | s.symbol = 0 | |
| 807 | - | s.prev_code_len = initialRepeatedCodeLength | |
| 808 | - | s.repeat = 0 | |
| 809 | - | s.repeat_code_len = 0 | |
| 810 | - | s.space = 32768 | |
| 811 | - | s.substate_huffman = stateHuffmanLengthSymbols | |
| 812 | - | } | |
| 813 | - | fallthrough | |
| 814 | - | ||
| 815 | - | case stateHuffmanLengthSymbols: | |
| 816 | - | var table_size uint32 | |
| 817 | - | var result int = readSymbolCodeLengths(max_symbol, s) | |
| 818 | - | if result == decoderNeedsMoreInput { | |
| 819 | - | result = safeReadSymbolCodeLengths(max_symbol, s) | |
| 820 | - | } | |
| 821 | - | ||
| 822 | - | if result != decoderSuccess { | |
| 823 | - | return result | |
| 824 | - | } | |
| 825 | - | ||
| 826 | - | if s.space != 0 { | |
| 827 | - | return decoderErrorFormatHuffmanSpace | |
| 828 | - | } | |
| 829 | - | ||
| 830 | - | table_size = buildHuffmanTable(table, huffmanTableBits, s.symbol_lists, s.code_length_histo[:]) | |
| 831 | - | if opt_table_size != nil { | |
| 832 | - | *opt_table_size = table_size | |
| 833 | - | } | |
| 834 | - | ||
| 835 | - | s.substate_huffman = stateHuffmanNone | |
| 836 | - | return decoderSuccess | |
| 837 | - | ||
| 838 | - | default: | |
| 839 | - | return decoderErrorUnreachable | |
| 840 | - | } | |
| 841 | - | } | |
| 842 | - | } | |
| 843 | - | ||
| 844 | - | /* Decodes a block length by reading 3..39 bits. */ | |
| 845 | - | func readBlockLength(table []huffmanCode, br *bitReader) uint32 { | |
| 846 | - | var code uint32 | |
| 847 | - | var nbits uint32 | |
| 848 | - | code = readSymbol(table, br) | |
| 849 | - | nbits = kBlockLengthPrefixCode[code].nbits /* nbits == 2..24 */ | |
| 850 | - | return kBlockLengthPrefixCode[code].offset + readBits(br, nbits) | |
| 851 | - | } | |
| 852 | - | ||
| 853 | - | /* WARNING: if state is not BROTLI_STATE_READ_BLOCK_LENGTH_NONE, then | |
| 854 | - | reading can't be continued with ReadBlockLength. */ | |
| 855 | - | func safeReadBlockLength(s *Reader, result *uint32, table []huffmanCode, br *bitReader) bool { | |
| 856 | - | var index uint32 | |
| 857 | - | if s.substate_read_block_length == stateReadBlockLengthNone { | |
| 858 | - | if !safeReadSymbol(table, br, &index) { | |
| 859 | - | return false | |
| 860 | - | } | |
| 861 | - | } else { | |
| 862 | - | index = s.block_length_index | |
| 863 | - | } | |
| 864 | - | { | |
| 865 | - | var bits uint32 /* nbits == 2..24 */ | |
| 866 | - | var nbits uint32 = kBlockLengthPrefixCode[index].nbits | |
| 867 | - | if !safeReadBits(br, nbits, &bits) { | |
| 868 | - | s.block_length_index = index | |
| 869 | - | s.substate_read_block_length = stateReadBlockLengthSuffix | |
| 870 | - | return false | |
| 871 | - | } | |
| 872 | - | ||
| 873 | - | *result = kBlockLengthPrefixCode[index].offset + bits | |
| 874 | - | s.substate_read_block_length = stateReadBlockLengthNone | |
| 875 | - | return true | |
| 876 | - | } | |
| 877 | - | } | |
| 878 | - | ||
| 879 | - | /* Transform: | |
| 880 | - | 1) initialize list L with values 0, 1,... 255 | |
| 881 | - | 2) For each input element X: | |
| 882 | - | 2.1) let Y = L[X] | |
| 883 | - | 2.2) remove X-th element from L | |
| 884 | - | 2.3) prepend Y to L | |
| 885 | - | 2.4) append Y to output | |
| 886 | - | ||
| 887 | - | In most cases max(Y) <= 7, so most of L remains intact. | |
| 888 | - | To reduce the cost of initialization, we reuse L, remember the upper bound | |
| 889 | - | of Y values, and reinitialize only first elements in L. | |
| 890 | - | ||
| 891 | - | Most of input values are 0 and 1. To reduce number of branches, we replace | |
| 892 | - | inner for loop with do-while. */ | |
| 893 | - | func inverseMoveToFrontTransform(v []byte, v_len uint32, state *Reader) { | |
| 894 | - | var mtf [256]byte | |
| 895 | - | var i int | |
| 896 | - | for i = 1; i < 256; i++ { | |
| 897 | - | mtf[i] = byte(i) | |
| 898 | - | } | |
| 899 | - | var mtf_1 byte | |
| 900 | - | ||
| 901 | - | /* Transform the input. */ | |
| 902 | - | for i = 0; uint32(i) < v_len; i++ { | |
| 903 | - | var index int = int(v[i]) | |
| 904 | - | var value byte = mtf[index] | |
| 905 | - | v[i] = value | |
| 906 | - | mtf_1 = value | |
| 907 | - | for index >= 1 { | |
| 908 | - | index-- | |
| 909 | - | mtf[index+1] = mtf[index] | |
| 910 | - | } | |
| 911 | - | ||
| 912 | - | mtf[0] = mtf_1 | |
| 913 | - | } | |
| 914 | - | } | |
| 915 | - | ||
| 916 | - | /* Decodes a series of Huffman table using ReadHuffmanCode function. */ | |
| 917 | - | func huffmanTreeGroupDecode(group *huffmanTreeGroup, s *Reader) int { | |
| 918 | - | if s.substate_tree_group != stateTreeGroupLoop { | |
| 919 | - | s.next = group.codes | |
| 920 | - | s.htree_index = 0 | |
| 921 | - | s.substate_tree_group = stateTreeGroupLoop | |
| 922 | - | } | |
| 923 | - | ||
| 924 | - | for s.htree_index < int(group.num_htrees) { | |
| 925 | - | var table_size uint32 | |
| 926 | - | var result int = readHuffmanCode(uint32(group.alphabet_size), uint32(group.max_symbol), s.next, &table_size, s) | |
| 927 | - | if result != decoderSuccess { | |
| 928 | - | return result | |
| 929 | - | } | |
| 930 | - | group.htrees[s.htree_index] = s.next | |
| 931 | - | s.next = s.next[table_size:] | |
| 932 | - | s.htree_index++ | |
| 933 | - | } | |
| 934 | - | ||
| 935 | - | s.substate_tree_group = stateTreeGroupNone | |
| 936 | - | return decoderSuccess | |
| 937 | - | } | |
| 938 | - | ||
| 939 | - | /* Decodes a context map. | |
| 940 | - | Decoding is done in 4 phases: | |
| 941 | - | 1) Read auxiliary information (6..16 bits) and allocate memory. | |
| 942 | - | In case of trivial context map, decoding is finished at this phase. | |
| 943 | - | 2) Decode Huffman table using ReadHuffmanCode function. | |
| 944 | - | This table will be used for reading context map items. | |
| 945 | - | 3) Read context map items; "0" values could be run-length encoded. | |
| 946 | - | 4) Optionally, apply InverseMoveToFront transform to the resulting map. */ | |
| 947 | - | func decodeContextMap(context_map_size uint32, num_htrees *uint32, context_map_arg *[]byte, s *Reader) int { | |
| 948 | - | var br *bitReader = &s.br | |
| 949 | - | var result int = decoderSuccess | |
| 950 | - | ||
| 951 | - | switch int(s.substate_context_map) { | |
| 952 | - | case stateContextMapNone: | |
| 953 | - | result = decodeVarLenUint8(s, br, num_htrees) | |
| 954 | - | if result != decoderSuccess { | |
| 955 | - | return result | |
| 956 | - | } | |
| 957 | - | ||
| 958 | - | (*num_htrees)++ | |
| 959 | - | s.context_index = 0 | |
| 960 | - | *context_map_arg = make([]byte, uint(context_map_size)) | |
| 961 | - | if *context_map_arg == nil { | |
| 962 | - | return decoderErrorAllocContextMap | |
| 963 | - | } | |
| 964 | - | ||
| 965 | - | if *num_htrees <= 1 { | |
| 966 | - | for i := 0; i < int(context_map_size); i++ { | |
| 967 | - | (*context_map_arg)[i] = 0 | |
| 968 | - | } | |
| 969 | - | return decoderSuccess | |
| 970 | - | } | |
| 971 | - | ||
| 972 | - | s.substate_context_map = stateContextMapReadPrefix | |
| 973 | - | fallthrough | |
| 974 | - | /* Fall through. */ | |
| 975 | - | case stateContextMapReadPrefix: | |
| 976 | - | { | |
| 977 | - | var bits uint32 | |
| 978 | - | ||
| 979 | - | /* In next stage ReadHuffmanCode uses at least 4 bits, so it is safe | |
| 980 | - | to peek 4 bits ahead. */ | |
| 981 | - | if !safeGetBits(br, 5, &bits) { | |
| 982 | - | return decoderNeedsMoreInput | |
| 983 | - | } | |
| 984 | - | ||
| 985 | - | if bits&1 != 0 { /* Use RLE for zeros. */ | |
| 986 | - | s.max_run_length_prefix = (bits >> 1) + 1 | |
| 987 | - | dropBits(br, 5) | |
| 988 | - | } else { | |
| 989 | - | s.max_run_length_prefix = 0 | |
| 990 | - | dropBits(br, 1) | |
| 991 | - | } | |
| 992 | - | ||
| 993 | - | s.substate_context_map = stateContextMapHuffman | |
| 994 | - | } | |
| 995 | - | fallthrough | |
| 996 | - | ||
| 997 | - | /* Fall through. */ | |
| 998 | - | case stateContextMapHuffman: | |
| 999 | - | { | |
| 1000 | - | var alphabet_size uint32 = *num_htrees + s.max_run_length_prefix | |
| 1001 | - | result = readHuffmanCode(alphabet_size, alphabet_size, s.context_map_table[:], nil, s) | |
| 1002 | - | if result != decoderSuccess { | |
| 1003 | - | return result | |
| 1004 | - | } | |
| 1005 | - | s.code = 0xFFFF | |
| 1006 | - | s.substate_context_map = stateContextMapDecode | |
| 1007 | - | } | |
| 1008 | - | fallthrough | |
| 1009 | - | ||
| 1010 | - | /* Fall through. */ | |
| 1011 | - | case stateContextMapDecode: | |
| 1012 | - | { | |
| 1013 | - | var context_index uint32 = s.context_index | |
| 1014 | - | var max_run_length_prefix uint32 = s.max_run_length_prefix | |
| 1015 | - | var context_map []byte = *context_map_arg | |
| 1016 | - | var code uint32 = s.code | |
| 1017 | - | var skip_preamble bool = (code != 0xFFFF) | |
| 1018 | - | for context_index < context_map_size || skip_preamble { | |
| 1019 | - | if !skip_preamble { | |
| 1020 | - | if !safeReadSymbol(s.context_map_table[:], br, &code) { | |
| 1021 | - | s.code = 0xFFFF | |
| 1022 | - | s.context_index = context_index | |
| 1023 | - | return decoderNeedsMoreInput | |
| 1024 | - | } | |
| 1025 | - | ||
| 1026 | - | if code == 0 { | |
| 1027 | - | context_map[context_index] = 0 | |
| 1028 | - | context_index++ | |
| 1029 | - | continue | |
| 1030 | - | } | |
| 1031 | - | ||
| 1032 | - | if code > max_run_length_prefix { | |
| 1033 | - | context_map[context_index] = byte(code - max_run_length_prefix) | |
| 1034 | - | context_index++ | |
| 1035 | - | continue | |
| 1036 | - | } | |
| 1037 | - | } else { | |
| 1038 | - | skip_preamble = false | |
| 1039 | - | } | |
| 1040 | - | ||
| 1041 | - | /* RLE sub-stage. */ | |
| 1042 | - | { | |
| 1043 | - | var reps uint32 | |
| 1044 | - | if !safeReadBits(br, code, &reps) { | |
| 1045 | - | s.code = code | |
| 1046 | - | s.context_index = context_index | |
| 1047 | - | return decoderNeedsMoreInput | |
| 1048 | - | } | |
| 1049 | - | ||
| 1050 | - | reps += 1 << code | |
| 1051 | - | if context_index+reps > context_map_size { | |
| 1052 | - | return decoderErrorFormatContextMapRepeat | |
| 1053 | - | } | |
| 1054 | - | ||
| 1055 | - | for { | |
| 1056 | - | context_map[context_index] = 0 | |
| 1057 | - | context_index++ | |
| 1058 | - | reps-- | |
| 1059 | - | if reps == 0 { | |
| 1060 | - | break | |
| 1061 | - | } | |
| 1062 | - | } | |
| 1063 | - | } | |
| 1064 | - | } | |
| 1065 | - | } | |
| 1066 | - | fallthrough | |
| 1067 | - | ||
| 1068 | - | case stateContextMapTransform: | |
| 1069 | - | var bits uint32 | |
| 1070 | - | if !safeReadBits(br, 1, &bits) { | |
| 1071 | - | s.substate_context_map = stateContextMapTransform | |
| 1072 | - | return decoderNeedsMoreInput | |
| 1073 | - | } | |
| 1074 | - | ||
| 1075 | - | if bits != 0 { | |
| 1076 | - | inverseMoveToFrontTransform(*context_map_arg, context_map_size, s) | |
| 1077 | - | } | |
| 1078 | - | ||
| 1079 | - | s.substate_context_map = stateContextMapNone | |
| 1080 | - | return decoderSuccess | |
| 1081 | - | ||
| 1082 | - | default: | |
| 1083 | - | return decoderErrorUnreachable | |
| 1084 | - | } | |
| 1085 | - | } | |
| 1086 | - | ||
| 1087 | - | /* Decodes a command or literal and updates block type ring-buffer. | |
| 1088 | - | Reads 3..54 bits. */ | |
| 1089 | - | func decodeBlockTypeAndLength(safe int, s *Reader, tree_type int) bool { | |
| 1090 | - | var max_block_type uint32 = s.num_block_types[tree_type] | |
| 1091 | - | type_tree := s.block_type_trees[tree_type*huffmanMaxSize258:] | |
| 1092 | - | len_tree := s.block_len_trees[tree_type*huffmanMaxSize26:] | |
| 1093 | - | var br *bitReader = &s.br | |
| 1094 | - | var ringbuffer []uint32 = s.block_type_rb[tree_type*2:] | |
| 1095 | - | var block_type uint32 | |
| 1096 | - | if max_block_type <= 1 { | |
| 1097 | - | return false | |
| 1098 | - | } | |
| 1099 | - | ||
| 1100 | - | /* Read 0..15 + 3..39 bits. */ | |
| 1101 | - | if safe == 0 { | |
| 1102 | - | block_type = readSymbol(type_tree, br) | |
| 1103 | - | s.block_length[tree_type] = readBlockLength(len_tree, br) | |
| 1104 | - | } else { | |
| 1105 | - | var memento bitReaderState | |
| 1106 | - | bitReaderSaveState(br, &memento) | |
| 1107 | - | if !safeReadSymbol(type_tree, br, &block_type) { | |
| 1108 | - | return false | |
| 1109 | - | } | |
| 1110 | - | if !safeReadBlockLength(s, &s.block_length[tree_type], len_tree, br) { | |
| 1111 | - | s.substate_read_block_length = stateReadBlockLengthNone | |
| 1112 | - | bitReaderRestoreState(br, &memento) | |
| 1113 | - | return false | |
| 1114 | - | } | |
| 1115 | - | } | |
| 1116 | - | ||
| 1117 | - | if block_type == 1 { | |
| 1118 | - | block_type = ringbuffer[1] + 1 | |
| 1119 | - | } else if block_type == 0 { | |
| 1120 | - | block_type = ringbuffer[0] | |
| 1121 | - | } else { | |
| 1122 | - | block_type -= 2 | |
| 1123 | - | } | |
| 1124 | - | ||
| 1125 | - | if block_type >= max_block_type { | |
| 1126 | - | block_type -= max_block_type | |
| 1127 | - | } | |
| 1128 | - | ||
| 1129 | - | ringbuffer[0] = ringbuffer[1] | |
| 1130 | - | ringbuffer[1] = block_type | |
| 1131 | - | return true | |
| 1132 | - | } | |
| 1133 | - | ||
| 1134 | - | func detectTrivialLiteralBlockTypes(s *Reader) { | |
| 1135 | - | var i uint | |
| 1136 | - | for i = 0; i < 8; i++ { | |
| 1137 | - | s.trivial_literal_contexts[i] = 0 | |
| 1138 | - | } | |
| 1139 | - | for i = 0; uint32(i) < s.num_block_types[0]; i++ { | |
| 1140 | - | var offset uint = i << literalContextBits | |
| 1141 | - | var error uint = 0 | |
| 1142 | - | var sample uint = uint(s.context_map[offset]) | |
| 1143 | - | var j uint | |
| 1144 | - | for j = 0; j < 1<<literalContextBits; { | |
| 1145 | - | var k int | |
| 1146 | - | for k = 0; k < 4; k++ { | |
| 1147 | - | error |= uint(s.context_map[offset+j]) ^ sample | |
| 1148 | - | j++ | |
| 1149 | - | } | |
| 1150 | - | } | |
| 1151 | - | ||
| 1152 | - | if error == 0 { | |
| 1153 | - | s.trivial_literal_contexts[i>>5] |= 1 << (i & 31) | |
| 1154 | - | } | |
| 1155 | - | } | |
| 1156 | - | } | |
| 1157 | - | ||
| 1158 | - | func prepareLiteralDecoding(s *Reader) { | |
| 1159 | - | var context_mode byte | |
| 1160 | - | var trivial uint | |
| 1161 | - | var block_type uint32 = s.block_type_rb[1] | |
| 1162 | - | var context_offset uint32 = block_type << literalContextBits | |
| 1163 | - | s.context_map_slice = s.context_map[context_offset:] | |
| 1164 | - | trivial = uint(s.trivial_literal_contexts[block_type>>5]) | |
| 1165 | - | s.trivial_literal_context = int((trivial >> (block_type & 31)) & 1) | |
| 1166 | - | s.literal_htree = []huffmanCode(s.literal_hgroup.htrees[s.context_map_slice[0]]) | |
| 1167 | - | context_mode = s.context_modes[block_type] & 3 | |
| 1168 | - | s.context_lookup = getContextLUT(int(context_mode)) | |
| 1169 | - | } | |
| 1170 | - | ||
| 1171 | - | /* Decodes the block type and updates the state for literal context. | |
| 1172 | - | Reads 3..54 bits. */ | |
| 1173 | - | func decodeLiteralBlockSwitchInternal(safe int, s *Reader) bool { | |
| 1174 | - | if !decodeBlockTypeAndLength(safe, s, 0) { | |
| 1175 | - | return false | |
| 1176 | - | } | |
| 1177 | - | ||
| 1178 | - | prepareLiteralDecoding(s) | |
| 1179 | - | return true | |
| 1180 | - | } | |
| 1181 | - | ||
| 1182 | - | func decodeLiteralBlockSwitch(s *Reader) { | |
| 1183 | - | decodeLiteralBlockSwitchInternal(0, s) | |
| 1184 | - | } | |
| 1185 | - | ||
| 1186 | - | func safeDecodeLiteralBlockSwitch(s *Reader) bool { | |
| 1187 | - | return decodeLiteralBlockSwitchInternal(1, s) | |
| 1188 | - | } | |
| 1189 | - | ||
| 1190 | - | /* Block switch for insert/copy length. | |
| 1191 | - | Reads 3..54 bits. */ | |
| 1192 | - | func decodeCommandBlockSwitchInternal(safe int, s *Reader) bool { | |
| 1193 | - | if !decodeBlockTypeAndLength(safe, s, 1) { | |
| 1194 | - | return false | |
| 1195 | - | } | |
| 1196 | - | ||
| 1197 | - | s.htree_command = []huffmanCode(s.insert_copy_hgroup.htrees[s.block_type_rb[3]]) | |
| 1198 | - | return true | |
| 1199 | - | } | |
| 1200 | - | ||
| 1201 | - | func decodeCommandBlockSwitch(s *Reader) { | |
| 1202 | - | decodeCommandBlockSwitchInternal(0, s) | |
| 1203 | - | } | |
| 1204 | - | ||
| 1205 | - | func safeDecodeCommandBlockSwitch(s *Reader) bool { | |
| 1206 | - | return decodeCommandBlockSwitchInternal(1, s) | |
| 1207 | - | } | |
| 1208 | - | ||
| 1209 | - | /* Block switch for distance codes. | |
| 1210 | - | Reads 3..54 bits. */ | |
| 1211 | - | func decodeDistanceBlockSwitchInternal(safe int, s *Reader) bool { | |
| 1212 | - | if !decodeBlockTypeAndLength(safe, s, 2) { | |
| 1213 | - | return false | |
| 1214 | - | } | |
| 1215 | - | ||
| 1216 | - | s.dist_context_map_slice = s.dist_context_map[s.block_type_rb[5]<<distanceContextBits:] | |
| 1217 | - | s.dist_htree_index = s.dist_context_map_slice[s.distance_context] | |
| 1218 | - | return true | |
| 1219 | - | } | |
| 1220 | - | ||
| 1221 | - | func decodeDistanceBlockSwitch(s *Reader) { | |
| 1222 | - | decodeDistanceBlockSwitchInternal(0, s) | |
| 1223 | - | } | |
| 1224 | - | ||
| 1225 | - | func safeDecodeDistanceBlockSwitch(s *Reader) bool { | |
| 1226 | - | return decodeDistanceBlockSwitchInternal(1, s) | |
| 1227 | - | } | |
| 1228 | - | ||
| 1229 | - | func unwrittenBytes(s *Reader, wrap bool) uint { | |
| 1230 | - | var pos uint | |
| 1231 | - | if wrap && s.pos > s.ringbuffer_size { | |
| 1232 | - | pos = uint(s.ringbuffer_size) | |
| 1233 | - | } else { | |
| 1234 | - | pos = uint(s.pos) | |
| 1235 | - | } | |
| 1236 | - | var partial_pos_rb uint = (s.rb_roundtrips * uint(s.ringbuffer_size)) + pos | |
| 1237 | - | return partial_pos_rb - s.partial_pos_out | |
| 1238 | - | } | |
| 1239 | - | ||
| 1240 | - | /* Dumps output. | |
| 1241 | - | Returns BROTLI_DECODER_NEEDS_MORE_OUTPUT only if there is more output to push | |
| 1242 | - | and either ring-buffer is as big as window size, or |force| is true. */ | |
| 1243 | - | func writeRingBuffer(s *Reader, available_out *uint, next_out *[]byte, total_out *uint, force bool) int { | |
| 1244 | - | start := s.ringbuffer[s.partial_pos_out&uint(s.ringbuffer_mask):] | |
| 1245 | - | var to_write uint = unwrittenBytes(s, true) | |
| 1246 | - | var num_written uint = *available_out | |
| 1247 | - | if num_written > to_write { | |
| 1248 | - | num_written = to_write | |
| 1249 | - | } | |
| 1250 | - | ||
| 1251 | - | if s.meta_block_remaining_len < 0 { | |
| 1252 | - | return decoderErrorFormatBlockLength1 | |
| 1253 | - | } | |
| 1254 | - | ||
| 1255 | - | if next_out != nil && *next_out == nil { | |
| 1256 | - | *next_out = start | |
| 1257 | - | } else { | |
| 1258 | - | if next_out != nil { | |
| 1259 | - | copy(*next_out, start[:num_written]) | |
| 1260 | - | *next_out = (*next_out)[num_written:] | |
| 1261 | - | } | |
| 1262 | - | } | |
| 1263 | - | ||
| 1264 | - | *available_out -= num_written | |
| 1265 | - | s.partial_pos_out += num_written | |
| 1266 | - | if total_out != nil { | |
| 1267 | - | *total_out = s.partial_pos_out | |
| 1268 | - | } | |
| 1269 | - | ||
| 1270 | - | if num_written < to_write { | |
| 1271 | - | if s.ringbuffer_size == 1<<s.window_bits || force { | |
| 1272 | - | return decoderNeedsMoreOutput | |
| 1273 | - | } else { | |
| 1274 | - | return decoderSuccess | |
| 1275 | - | } | |
| 1276 | - | } | |
| 1277 | - | ||
| 1278 | - | /* Wrap ring buffer only if it has reached its maximal size. */ | |
| 1279 | - | if s.ringbuffer_size == 1<<s.window_bits && s.pos >= s.ringbuffer_size { | |
| 1280 | - | s.pos -= s.ringbuffer_size | |
| 1281 | - | s.rb_roundtrips++ | |
| 1282 | - | if uint(s.pos) != 0 { | |
| 1283 | - | s.should_wrap_ringbuffer = 1 | |
| 1284 | - | } else { | |
| 1285 | - | s.should_wrap_ringbuffer = 0 | |
| 1286 | - | } | |
| 1287 | - | } | |
| 1288 | - | ||
| 1289 | - | return decoderSuccess | |
| 1290 | - | } | |
| 1291 | - | ||
| 1292 | - | func wrapRingBuffer(s *Reader) { | |
| 1293 | - | if s.should_wrap_ringbuffer != 0 { | |
| 1294 | - | copy(s.ringbuffer, s.ringbuffer_end[:uint(s.pos)]) | |
| 1295 | - | s.should_wrap_ringbuffer = 0 | |
| 1296 | - | } | |
| 1297 | - | } | |
| 1298 | - | ||
| 1299 | - | /* Allocates ring-buffer. | |
| 1300 | - | ||
| 1301 | - | s->ringbuffer_size MUST be updated by BrotliCalculateRingBufferSize before | |
| 1302 | - | this function is called. | |
| 1303 | - | ||
| 1304 | - | Last two bytes of ring-buffer are initialized to 0, so context calculation | |
| 1305 | - | could be done uniformly for the first two and all other positions. */ | |
| 1306 | - | func ensureRingBuffer(s *Reader) bool { | |
| 1307 | - | var old_ringbuffer []byte | |
| 1308 | - | if s.ringbuffer_size == s.new_ringbuffer_size { | |
| 1309 | - | return true | |
| 1310 | - | } | |
| 1311 | - | spaceNeeded := int(s.new_ringbuffer_size) + int(kRingBufferWriteAheadSlack) | |
| 1312 | - | if len(s.ringbuffer) < spaceNeeded { | |
| 1313 | - | old_ringbuffer = s.ringbuffer | |
| 1314 | - | s.ringbuffer = make([]byte, spaceNeeded) | |
| 1315 | - | } | |
| 1316 | - | ||
| 1317 | - | s.ringbuffer[s.new_ringbuffer_size-2] = 0 | |
| 1318 | - | s.ringbuffer[s.new_ringbuffer_size-1] = 0 | |
| 1319 | - | ||
| 1320 | - | if old_ringbuffer != nil { | |
| 1321 | - | copy(s.ringbuffer, old_ringbuffer[:uint(s.pos)]) | |
| 1322 | - | } | |
| 1323 | - | ||
| 1324 | - | s.ringbuffer_size = s.new_ringbuffer_size | |
| 1325 | - | s.ringbuffer_mask = s.new_ringbuffer_size - 1 | |
| 1326 | - | s.ringbuffer_end = s.ringbuffer[s.ringbuffer_size:] | |
| 1327 | - | ||
| 1328 | - | return true | |
| 1329 | - | } | |
| 1330 | - | ||
| 1331 | - | func copyUncompressedBlockToOutput(available_out *uint, next_out *[]byte, total_out *uint, s *Reader) int { | |
| 1332 | - | /* TODO: avoid allocation for single uncompressed block. */ | |
| 1333 | - | if !ensureRingBuffer(s) { | |
| 1334 | - | return decoderErrorAllocRingBuffer1 | |
| 1335 | - | } | |
| 1336 | - | ||
| 1337 | - | /* State machine */ | |
| 1338 | - | for { | |
| 1339 | - | switch s.substate_uncompressed { | |
| 1340 | - | case stateUncompressedNone: | |
| 1341 | - | { | |
| 1342 | - | var nbytes int = int(getRemainingBytes(&s.br)) | |
| 1343 | - | if nbytes > s.meta_block_remaining_len { | |
| 1344 | - | nbytes = s.meta_block_remaining_len | |
| 1345 | - | } | |
| 1346 | - | ||
| 1347 | - | if s.pos+nbytes > s.ringbuffer_size { | |
| 1348 | - | nbytes = s.ringbuffer_size - s.pos | |
| 1349 | - | } | |
| 1350 | - | ||
| 1351 | - | /* Copy remaining bytes from s->br.buf_ to ring-buffer. */ | |
| 1352 | - | copyBytes(s.ringbuffer[s.pos:], &s.br, uint(nbytes)) | |
| 1353 | - | ||
| 1354 | - | s.pos += nbytes | |
| 1355 | - | s.meta_block_remaining_len -= nbytes | |
| 1356 | - | if s.pos < 1<<s.window_bits { | |
| 1357 | - | if s.meta_block_remaining_len == 0 { | |
| 1358 | - | return decoderSuccess | |
| 1359 | - | } | |
| 1360 | - | ||
| 1361 | - | return decoderNeedsMoreInput | |
| 1362 | - | } | |
| 1363 | - | ||
| 1364 | - | s.substate_uncompressed = stateUncompressedWrite | |
| 1365 | - | } | |
| 1366 | - | fallthrough | |
| 1367 | - | ||
| 1368 | - | case stateUncompressedWrite: | |
| 1369 | - | { | |
| 1370 | - | result := writeRingBuffer(s, available_out, next_out, total_out, false) | |
| 1371 | - | if result != decoderSuccess { | |
| 1372 | - | return result | |
| 1373 | - | } | |
| 1374 | - | ||
| 1375 | - | if s.ringbuffer_size == 1<<s.window_bits { | |
| 1376 | - | s.max_distance = s.max_backward_distance | |
| 1377 | - | } | |
| 1378 | - | ||
| 1379 | - | s.substate_uncompressed = stateUncompressedNone | |
| 1380 | - | break | |
| 1381 | - | } | |
| 1382 | - | } | |
| 1383 | - | } | |
| 1384 | - | } | |
| 1385 | - | ||
| 1386 | - | /* Calculates the smallest feasible ring buffer. | |
| 1387 | - | ||
| 1388 | - | If we know the data size is small, do not allocate more ring buffer | |
| 1389 | - | size than needed to reduce memory usage. | |
| 1390 | - | ||
| 1391 | - | When this method is called, metablock size and flags MUST be decoded. */ | |
| 1392 | - | func calculateRingBufferSize(s *Reader) { | |
| 1393 | - | var window_size int = 1 << s.window_bits | |
| 1394 | - | var new_ringbuffer_size int = window_size | |
| 1395 | - | var min_size int | |
| 1396 | - | /* We need at least 2 bytes of ring buffer size to get the last two | |
| 1397 | - | bytes for context from there */ | |
| 1398 | - | if s.ringbuffer_size != 0 { | |
| 1399 | - | min_size = s.ringbuffer_size | |
| 1400 | - | } else { | |
| 1401 | - | min_size = 1024 | |
| 1402 | - | } | |
| 1403 | - | var output_size int | |
| 1404 | - | ||
| 1405 | - | /* If maximum is already reached, no further extension is retired. */ | |
| 1406 | - | if s.ringbuffer_size == window_size { | |
| 1407 | - | return | |
| 1408 | - | } | |
| 1409 | - | ||
| 1410 | - | /* Metadata blocks does not touch ring buffer. */ | |
| 1411 | - | if s.is_metadata != 0 { | |
| 1412 | - | return | |
| 1413 | - | } | |
| 1414 | - | ||
| 1415 | - | if s.ringbuffer == nil { | |
| 1416 | - | output_size = 0 | |
| 1417 | - | } else { | |
| 1418 | - | output_size = s.pos | |
| 1419 | - | } | |
| 1420 | - | ||
| 1421 | - | output_size += s.meta_block_remaining_len | |
| 1422 | - | if min_size < output_size { | |
| 1423 | - | min_size = output_size | |
| 1424 | - | } | |
| 1425 | - | ||
| 1426 | - | if !(s.canny_ringbuffer_allocation == 0) { | |
| 1427 | - | /* Reduce ring buffer size to save memory when server is unscrupulous. | |
| 1428 | - | In worst case memory usage might be 1.5x bigger for a short period of | |
| 1429 | - | ring buffer reallocation. */ | |
| 1430 | - | for new_ringbuffer_size>>1 >= min_size { | |
| 1431 | - | new_ringbuffer_size >>= 1 | |
| 1432 | - | } | |
| 1433 | - | } | |
| 1434 | - | ||
| 1435 | - | s.new_ringbuffer_size = new_ringbuffer_size | |
| 1436 | - | } | |
| 1437 | - | ||
| 1438 | - | /* Reads 1..256 2-bit context modes. */ | |
| 1439 | - | func readContextModes(s *Reader) int { | |
| 1440 | - | var br *bitReader = &s.br | |
| 1441 | - | var i int = s.loop_counter | |
| 1442 | - | ||
| 1443 | - | for i < int(s.num_block_types[0]) { | |
| 1444 | - | var bits uint32 | |
| 1445 | - | if !safeReadBits(br, 2, &bits) { | |
| 1446 | - | s.loop_counter = i | |
| 1447 | - | return decoderNeedsMoreInput | |
| 1448 | - | } | |
| 1449 | - | ||
| 1450 | - | s.context_modes[i] = byte(bits) | |
| 1451 | - | i++ | |
| 1452 | - | } | |
| 1453 | - | ||
| 1454 | - | return decoderSuccess | |
| 1455 | - | } | |
| 1456 | - | ||
| 1457 | - | func takeDistanceFromRingBuffer(s *Reader) { | |
| 1458 | - | if s.distance_code == 0 { | |
| 1459 | - | s.dist_rb_idx-- | |
| 1460 | - | s.distance_code = s.dist_rb[s.dist_rb_idx&3] | |
| 1461 | - | ||
| 1462 | - | /* Compensate double distance-ring-buffer roll for dictionary items. */ | |
| 1463 | - | s.distance_context = 1 | |
| 1464 | - | } else { | |
| 1465 | - | var distance_code int = s.distance_code << 1 | |
| 1466 | - | const kDistanceShortCodeIndexOffset uint32 = 0xAAAFFF1B | |
| 1467 | - | const kDistanceShortCodeValueOffset uint32 = 0xFA5FA500 | |
| 1468 | - | var v int = (s.dist_rb_idx + int(kDistanceShortCodeIndexOffset>>uint(distance_code))) & 0x3 | |
| 1469 | - | /* kDistanceShortCodeIndexOffset has 2-bit values from LSB: | |
| 1470 | - | 3, 2, 1, 0, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2 */ | |
| 1471 | - | ||
| 1472 | - | /* kDistanceShortCodeValueOffset has 2-bit values from LSB: | |
| 1473 | - | -0, 0,-0, 0,-1, 1,-2, 2,-3, 3,-1, 1,-2, 2,-3, 3 */ | |
| 1474 | - | s.distance_code = s.dist_rb[v] | |
| 1475 | - | ||
| 1476 | - | v = int(kDistanceShortCodeValueOffset>>uint(distance_code)) & 0x3 | |
| 1477 | - | if distance_code&0x3 != 0 { | |
| 1478 | - | s.distance_code += v | |
| 1479 | - | } else { | |
| 1480 | - | s.distance_code -= v | |
| 1481 | - | if s.distance_code <= 0 { | |
| 1482 | - | /* A huge distance will cause a () soon. | |
| 1483 | - | This is a little faster than failing here. */ | |
| 1484 | - | s.distance_code = 0x7FFFFFFF | |
| 1485 | - | } | |
| 1486 | - | } | |
| 1487 | - | } | |
| 1488 | - | } | |
| 1489 | - | ||
| 1490 | - | func safeReadBitsMaybeZero(br *bitReader, n_bits uint32, val *uint32) bool { | |
| 1491 | - | if n_bits != 0 { | |
| 1492 | - | return safeReadBits(br, n_bits, val) | |
| 1493 | - | } else { | |
| 1494 | - | *val = 0 | |
| 1495 | - | return true | |
| 1496 | - | } | |
| 1497 | - | } | |
| 1498 | - | ||
| 1499 | - | /* Precondition: s->distance_code < 0. */ | |
| 1500 | - | func readDistanceInternal(safe int, s *Reader, br *bitReader) bool { | |
| 1501 | - | var distval int | |
| 1502 | - | var memento bitReaderState | |
| 1503 | - | var distance_tree []huffmanCode = []huffmanCode(s.distance_hgroup.htrees[s.dist_htree_index]) | |
| 1504 | - | if safe == 0 { | |
| 1505 | - | s.distance_code = int(readSymbol(distance_tree, br)) | |
| 1506 | - | } else { | |
| 1507 | - | var code uint32 | |
| 1508 | - | bitReaderSaveState(br, &memento) | |
| 1509 | - | if !safeReadSymbol(distance_tree, br, &code) { | |
| 1510 | - | return false | |
| 1511 | - | } | |
| 1512 | - | ||
| 1513 | - | s.distance_code = int(code) | |
| 1514 | - | } | |
| 1515 | - | ||
| 1516 | - | /* Convert the distance code to the actual distance by possibly | |
| 1517 | - | looking up past distances from the s->ringbuffer. */ | |
| 1518 | - | s.distance_context = 0 | |
| 1519 | - | ||
| 1520 | - | if s.distance_code&^0xF == 0 { | |
| 1521 | - | takeDistanceFromRingBuffer(s) | |
| 1522 | - | s.block_length[2]-- | |
| 1523 | - | return true | |
| 1524 | - | } | |
| 1525 | - | ||
| 1526 | - | distval = s.distance_code - int(s.num_direct_distance_codes) | |
| 1527 | - | if distval >= 0 { | |
| 1528 | - | var nbits uint32 | |
| 1529 | - | var postfix int | |
| 1530 | - | var offset int | |
| 1531 | - | if safe == 0 && (s.distance_postfix_bits == 0) { | |
| 1532 | - | nbits = (uint32(distval) >> 1) + 1 | |
| 1533 | - | offset = ((2 + (distval & 1)) << nbits) - 4 | |
| 1534 | - | s.distance_code = int(s.num_direct_distance_codes) + offset + int(readBits(br, nbits)) | |
| 1535 | - | } else { | |
| 1536 | - | /* This branch also works well when s->distance_postfix_bits == 0. */ | |
| 1537 | - | var bits uint32 | |
| 1538 | - | postfix = distval & s.distance_postfix_mask | |
| 1539 | - | distval >>= s.distance_postfix_bits | |
| 1540 | - | nbits = (uint32(distval) >> 1) + 1 | |
| 1541 | - | if safe != 0 { | |
| 1542 | - | if !safeReadBitsMaybeZero(br, nbits, &bits) { | |
| 1543 | - | s.distance_code = -1 /* Restore precondition. */ | |
| 1544 | - | bitReaderRestoreState(br, &memento) | |
| 1545 | - | return false | |
| 1546 | - | } | |
| 1547 | - | } else { | |
| 1548 | - | bits = readBits(br, nbits) | |
| 1549 | - | } | |
| 1550 | - | ||
| 1551 | - | offset = ((2 + (distval & 1)) << nbits) - 4 | |
| 1552 | - | s.distance_code = int(s.num_direct_distance_codes) + ((offset + int(bits)) << s.distance_postfix_bits) + postfix | |
| 1553 | - | } | |
| 1554 | - | } | |
| 1555 | - | ||
| 1556 | - | s.distance_code = s.distance_code - numDistanceShortCodes + 1 | |
| 1557 | - | s.block_length[2]-- | |
| 1558 | - | return true | |
| 1559 | - | } | |
| 1560 | - | ||
| 1561 | - | func readDistance(s *Reader, br *bitReader) { | |
| 1562 | - | readDistanceInternal(0, s, br) | |
| 1563 | - | } | |
| 1564 | - | ||
| 1565 | - | func safeReadDistance(s *Reader, br *bitReader) bool { | |
| 1566 | - | return readDistanceInternal(1, s, br) | |
| 1567 | - | } | |
| 1568 | - | ||
| 1569 | - | func readCommandInternal(safe int, s *Reader, br *bitReader, insert_length *int) bool { | |
| 1570 | - | var cmd_code uint32 | |
| 1571 | - | var insert_len_extra uint32 = 0 | |
| 1572 | - | var copy_length uint32 | |
| 1573 | - | var v cmdLutElement | |
| 1574 | - | var memento bitReaderState | |
| 1575 | - | if safe == 0 { | |
| 1576 | - | cmd_code = readSymbol(s.htree_command, br) | |
| 1577 | - | } else { | |
| 1578 | - | bitReaderSaveState(br, &memento) | |
| 1579 | - | if !safeReadSymbol(s.htree_command, br, &cmd_code) { | |
| 1580 | - | return false | |
| 1581 | - | } | |
| 1582 | - | } | |
| 1583 | - | ||
| 1584 | - | v = kCmdLut[cmd_code] | |
| 1585 | - | s.distance_code = int(v.distance_code) | |
| 1586 | - | s.distance_context = int(v.context) | |
| 1587 | - | s.dist_htree_index = s.dist_context_map_slice[s.distance_context] | |
| 1588 | - | *insert_length = int(v.insert_len_offset) | |
| 1589 | - | if safe == 0 { | |
| 1590 | - | if v.insert_len_extra_bits != 0 { | |
| 1591 | - | insert_len_extra = readBits(br, uint32(v.insert_len_extra_bits)) | |
| 1592 | - | } | |
| 1593 | - | ||
| 1594 | - | copy_length = readBits(br, uint32(v.copy_len_extra_bits)) | |
| 1595 | - | } else { | |
| 1596 | - | if !safeReadBitsMaybeZero(br, uint32(v.insert_len_extra_bits), &insert_len_extra) || !safeReadBitsMaybeZero(br, uint32(v.copy_len_extra_bits), ©_length) { | |
| 1597 | - | bitReaderRestoreState(br, &memento) | |
| 1598 | - | return false | |
| 1599 | - | } | |
| 1600 | - | } | |
| 1601 | - | ||
| 1602 | - | s.copy_length = int(copy_length) + int(v.copy_len_offset) | |
| 1603 | - | s.block_length[1]-- | |
| 1604 | - | *insert_length += int(insert_len_extra) | |
| 1605 | - | return true | |
| 1606 | - | } | |
| 1607 | - | ||
| 1608 | - | func readCommand(s *Reader, br *bitReader, insert_length *int) { | |
| 1609 | - | readCommandInternal(0, s, br, insert_length) | |
| 1610 | - | } | |
| 1611 | - | ||
| 1612 | - | func safeReadCommand(s *Reader, br *bitReader, insert_length *int) bool { | |
| 1613 | - | return readCommandInternal(1, s, br, insert_length) | |
| 1614 | - | } | |
| 1615 | - | ||
| 1616 | - | func checkInputAmountMaybeSafe(safe int, br *bitReader, num uint) bool { | |
| 1617 | - | if safe != 0 { | |
| 1618 | - | return true | |
| 1619 | - | } | |
| 1620 | - | ||
| 1621 | - | return checkInputAmount(br, num) | |
| 1622 | - | } | |
| 1623 | - | ||
| 1624 | - | func processCommandsInternal(safe int, s *Reader) int { | |
| 1625 | - | var pos int = s.pos | |
| 1626 | - | var i int = s.loop_counter | |
| 1627 | - | var result int = decoderSuccess | |
| 1628 | - | var br *bitReader = &s.br | |
| 1629 | - | var hc []huffmanCode | |
| 1630 | - | ||
| 1631 | - | if !checkInputAmountMaybeSafe(safe, br, 28) { | |
| 1632 | - | result = decoderNeedsMoreInput | |
| 1633 | - | goto saveStateAndReturn | |
| 1634 | - | } | |
| 1635 | - | ||
| 1636 | - | if safe == 0 { | |
| 1637 | - | warmupBitReader(br) | |
| 1638 | - | } | |
| 1639 | - | ||
| 1640 | - | /* Jump into state machine. */ | |
| 1641 | - | if s.state == stateCommandBegin { | |
| 1642 | - | goto CommandBegin | |
| 1643 | - | } else if s.state == stateCommandInner { | |
| 1644 | - | goto CommandInner | |
| 1645 | - | } else if s.state == stateCommandPostDecodeLiterals { | |
| 1646 | - | goto CommandPostDecodeLiterals | |
| 1647 | - | } else if s.state == stateCommandPostWrapCopy { | |
| 1648 | - | goto CommandPostWrapCopy | |
| 1649 | - | } else { | |
| 1650 | - | return decoderErrorUnreachable | |
| 1651 | - | } | |
| 1652 | - | ||
| 1653 | - | CommandBegin: | |
| 1654 | - | if safe != 0 { | |
| 1655 | - | s.state = stateCommandBegin | |
| 1656 | - | } | |
| 1657 | - | ||
| 1658 | - | if !checkInputAmountMaybeSafe(safe, br, 28) { /* 156 bits + 7 bytes */ | |
| 1659 | - | s.state = stateCommandBegin | |
| 1660 | - | result = decoderNeedsMoreInput | |
| 1661 | - | goto saveStateAndReturn | |
| 1662 | - | } | |
| 1663 | - | ||
| 1664 | - | if s.block_length[1] == 0 { | |
| 1665 | - | if safe != 0 { | |
| 1666 | - | if !safeDecodeCommandBlockSwitch(s) { | |
| 1667 | - | result = decoderNeedsMoreInput | |
| 1668 | - | goto saveStateAndReturn | |
| 1669 | - | } | |
| 1670 | - | } else { | |
| 1671 | - | decodeCommandBlockSwitch(s) | |
| 1672 | - | } | |
| 1673 | - | ||
| 1674 | - | goto CommandBegin | |
| 1675 | - | } | |
| 1676 | - | ||
| 1677 | - | /* Read the insert/copy length in the command. */ | |
| 1678 | - | if safe != 0 { | |
| 1679 | - | if !safeReadCommand(s, br, &i) { | |
| 1680 | - | result = decoderNeedsMoreInput | |
| 1681 | - | goto saveStateAndReturn | |
| 1682 | - | } | |
| 1683 | - | } else { | |
| 1684 | - | readCommand(s, br, &i) | |
| 1685 | - | } | |
| 1686 | - | ||
| 1687 | - | if i == 0 { | |
| 1688 | - | goto CommandPostDecodeLiterals | |
| 1689 | - | } | |
| 1690 | - | ||
| 1691 | - | s.meta_block_remaining_len -= i | |
| 1692 | - | ||
| 1693 | - | CommandInner: | |
| 1694 | - | if safe != 0 { | |
| 1695 | - | s.state = stateCommandInner | |
| 1696 | - | } | |
| 1697 | - | ||
| 1698 | - | /* Read the literals in the command. */ | |
| 1699 | - | if s.trivial_literal_context != 0 { | |
| 1700 | - | var bits uint32 | |
| 1701 | - | var value uint32 | |
| 1702 | - | preloadSymbol(safe, s.literal_htree, br, &bits, &value) | |
| 1703 | - | for { | |
| 1704 | - | if !checkInputAmountMaybeSafe(safe, br, 28) { /* 162 bits + 7 bytes */ | |
| 1705 | - | s.state = stateCommandInner | |
| 1706 | - | result = decoderNeedsMoreInput | |
| 1707 | - | goto saveStateAndReturn | |
| 1708 | - | } | |
| 1709 | - | ||
| 1710 | - | if s.block_length[0] == 0 { | |
| 1711 | - | if safe != 0 { | |
| 1712 | - | if !safeDecodeLiteralBlockSwitch(s) { | |
| 1713 | - | result = decoderNeedsMoreInput | |
| 1714 | - | goto saveStateAndReturn | |
| 1715 | - | } | |
| 1716 | - | } else { | |
| 1717 | - | decodeLiteralBlockSwitch(s) | |
| 1718 | - | } | |
| 1719 | - | ||
| 1720 | - | preloadSymbol(safe, s.literal_htree, br, &bits, &value) | |
| 1721 | - | if s.trivial_literal_context == 0 { | |
| 1722 | - | goto CommandInner | |
| 1723 | - | } | |
| 1724 | - | } | |
| 1725 | - | ||
| 1726 | - | if safe == 0 { | |
| 1727 | - | s.ringbuffer[pos] = byte(readPreloadedSymbol(s.literal_htree, br, &bits, &value)) | |
| 1728 | - | } else { | |
| 1729 | - | var literal uint32 | |
| 1730 | - | if !safeReadSymbol(s.literal_htree, br, &literal) { | |
| 1731 | - | result = decoderNeedsMoreInput | |
| 1732 | - | goto saveStateAndReturn | |
| 1733 | - | } | |
| 1734 | - | ||
| 1735 | - | s.ringbuffer[pos] = byte(literal) | |
| 1736 | - | } | |
| 1737 | - | ||
| 1738 | - | s.block_length[0]-- | |
| 1739 | - | pos++ | |
| 1740 | - | if pos == s.ringbuffer_size { | |
| 1741 | - | s.state = stateCommandInnerWrite | |
| 1742 | - | i-- | |
| 1743 | - | goto saveStateAndReturn | |
| 1744 | - | } | |
| 1745 | - | i-- | |
| 1746 | - | if i == 0 { | |
| 1747 | - | break | |
| 1748 | - | } | |
| 1749 | - | } | |
| 1750 | - | } else { | |
| 1751 | - | var p1 byte = s.ringbuffer[(pos-1)&s.ringbuffer_mask] | |
| 1752 | - | var p2 byte = s.ringbuffer[(pos-2)&s.ringbuffer_mask] | |
| 1753 | - | for { | |
| 1754 | - | var context byte | |
| 1755 | - | if !checkInputAmountMaybeSafe(safe, br, 28) { /* 162 bits + 7 bytes */ | |
| 1756 | - | s.state = stateCommandInner | |
| 1757 | - | result = decoderNeedsMoreInput | |
| 1758 | - | goto saveStateAndReturn | |
| 1759 | - | } | |
| 1760 | - | ||
| 1761 | - | if s.block_length[0] == 0 { | |
| 1762 | - | if safe != 0 { | |
| 1763 | - | if !safeDecodeLiteralBlockSwitch(s) { | |
| 1764 | - | result = decoderNeedsMoreInput | |
| 1765 | - | goto saveStateAndReturn | |
| 1766 | - | } | |
| 1767 | - | } else { | |
| 1768 | - | decodeLiteralBlockSwitch(s) | |
| 1769 | - | } | |
| 1770 | - | ||
| 1771 | - | if s.trivial_literal_context != 0 { | |
| 1772 | - | goto CommandInner | |
| 1773 | - | } | |
| 1774 | - | } | |
| 1775 | - | ||
| 1776 | - | context = getContext(p1, p2, s.context_lookup) | |
| 1777 | - | hc = []huffmanCode(s.literal_hgroup.htrees[s.context_map_slice[context]]) | |
| 1778 | - | p2 = p1 | |
| 1779 | - | if safe == 0 { | |
| 1780 | - | p1 = byte(readSymbol(hc, br)) | |
| 1781 | - | } else { | |
| 1782 | - | var literal uint32 | |
| 1783 | - | if !safeReadSymbol(hc, br, &literal) { | |
| 1784 | - | result = decoderNeedsMoreInput | |
| 1785 | - | goto saveStateAndReturn | |
| 1786 | - | } | |
| 1787 | - | ||
| 1788 | - | p1 = byte(literal) | |
| 1789 | - | } | |
| 1790 | - | ||
| 1791 | - | s.ringbuffer[pos] = p1 | |
| 1792 | - | s.block_length[0]-- | |
| 1793 | - | pos++ | |
| 1794 | - | if pos == s.ringbuffer_size { | |
| 1795 | - | s.state = stateCommandInnerWrite | |
| 1796 | - | i-- | |
| 1797 | - | goto saveStateAndReturn | |
| 1798 | - | } | |
| 1799 | - | i-- | |
| 1800 | - | if i == 0 { | |
| 1801 | - | break | |
| 1802 | - | } | |
| 1803 | - | } | |
| 1804 | - | } | |
| 1805 | - | ||
| 1806 | - | if s.meta_block_remaining_len <= 0 { | |
| 1807 | - | s.state = stateMetablockDone | |
| 1808 | - | goto saveStateAndReturn | |
| 1809 | - | } | |
| 1810 | - | ||
| 1811 | - | CommandPostDecodeLiterals: | |
| 1812 | - | if safe != 0 { | |
| 1813 | - | s.state = stateCommandPostDecodeLiterals | |
| 1814 | - | } | |
| 1815 | - | ||
| 1816 | - | if s.distance_code >= 0 { | |
| 1817 | - | /* Implicit distance case. */ | |
| 1818 | - | if s.distance_code != 0 { | |
| 1819 | - | s.distance_context = 0 | |
| 1820 | - | } else { | |
| 1821 | - | s.distance_context = 1 | |
| 1822 | - | } | |
| 1823 | - | ||
| 1824 | - | s.dist_rb_idx-- | |
| 1825 | - | s.distance_code = s.dist_rb[s.dist_rb_idx&3] | |
| 1826 | - | } else { | |
| 1827 | - | /* Read distance code in the command, unless it was implicitly zero. */ | |
| 1828 | - | if s.block_length[2] == 0 { | |
| 1829 | - | if safe != 0 { | |
| 1830 | - | if !safeDecodeDistanceBlockSwitch(s) { | |
| 1831 | - | result = decoderNeedsMoreInput | |
| 1832 | - | goto saveStateAndReturn | |
| 1833 | - | } | |
| 1834 | - | } else { | |
| 1835 | - | decodeDistanceBlockSwitch(s) | |
| 1836 | - | } | |
| 1837 | - | } | |
| 1838 | - | ||
| 1839 | - | if safe != 0 { | |
| 1840 | - | if !safeReadDistance(s, br) { | |
| 1841 | - | result = decoderNeedsMoreInput | |
| 1842 | - | goto saveStateAndReturn | |
| 1843 | - | } | |
| 1844 | - | } else { | |
| 1845 | - | readDistance(s, br) | |
| 1846 | - | } | |
| 1847 | - | } | |
| 1848 | - | ||
| 1849 | - | if s.max_distance != s.max_backward_distance { | |
| 1850 | - | if pos < s.max_backward_distance { | |
| 1851 | - | s.max_distance = pos | |
| 1852 | - | } else { | |
| 1853 | - | s.max_distance = s.max_backward_distance | |
| 1854 | - | } | |
| 1855 | - | } | |
| 1856 | - | ||
| 1857 | - | i = s.copy_length | |
| 1858 | - | ||
| 1859 | - | /* Apply copy of LZ77 back-reference, or static dictionary reference if | |
| 1860 | - | the distance is larger than the max LZ77 distance */ | |
| 1861 | - | if s.distance_code > s.max_distance { | |
| 1862 | - | /* The maximum allowed distance is BROTLI_MAX_ALLOWED_DISTANCE = 0x7FFFFFFC. | |
| 1863 | - | With this choice, no signed overflow can occur after decoding | |
| 1864 | - | a special distance code (e.g., after adding 3 to the last distance). */ | |
| 1865 | - | if s.distance_code > maxAllowedDistance { | |
| 1866 | - | return decoderErrorFormatDistance | |
| 1867 | - | } | |
| 1868 | - | ||
| 1869 | - | if i >= minDictionaryWordLength && i <= maxDictionaryWordLength { | |
| 1870 | - | var address int = s.distance_code - s.max_distance - 1 | |
| 1871 | - | var words *dictionary = s.dictionary | |
| 1872 | - | var trans *transforms = s.transforms | |
| 1873 | - | var offset int = int(s.dictionary.offsets_by_length[i]) | |
| 1874 | - | var shift uint32 = uint32(s.dictionary.size_bits_by_length[i]) | |
| 1875 | - | var mask int = int(bitMask(shift)) | |
| 1876 | - | var word_idx int = address & mask | |
| 1877 | - | var transform_idx int = address >> shift | |
| 1878 | - | ||
| 1879 | - | /* Compensate double distance-ring-buffer roll. */ | |
| 1880 | - | s.dist_rb_idx += s.distance_context | |
| 1881 | - | ||
| 1882 | - | offset += word_idx * i | |
| 1883 | - | if words.data == nil { | |
| 1884 | - | return decoderErrorDictionaryNotSet | |
| 1885 | - | } | |
| 1886 | - | ||
| 1887 | - | if transform_idx < int(trans.num_transforms) { | |
| 1888 | - | word := words.data[offset:] | |
| 1889 | - | var len int = i | |
| 1890 | - | if transform_idx == int(trans.cutOffTransforms[0]) { | |
| 1891 | - | copy(s.ringbuffer[pos:], word[:uint(len)]) | |
| 1892 | - | } else { | |
| 1893 | - | len = transformDictionaryWord(s.ringbuffer[pos:], word, int(len), trans, transform_idx) | |
| 1894 | - | } | |
| 1895 | - | ||
| 1896 | - | pos += int(len) | |
| 1897 | - | s.meta_block_remaining_len -= int(len) | |
| 1898 | - | if pos >= s.ringbuffer_size { | |
| 1899 | - | s.state = stateCommandPostWrite1 | |
| 1900 | - | goto saveStateAndReturn | |
| 1901 | - | } | |
| 1902 | - | } else { | |
| 1903 | - | return decoderErrorFormatTransform | |
| 1904 | - | } | |
| 1905 | - | } else { | |
| 1906 | - | return decoderErrorFormatDictionary | |
| 1907 | - | } | |
| 1908 | - | } else { | |
| 1909 | - | var src_start int = (pos - s.distance_code) & s.ringbuffer_mask | |
| 1910 | - | copy_dst := s.ringbuffer[pos:] | |
| 1911 | - | copy_src := s.ringbuffer[src_start:] | |
| 1912 | - | var dst_end int = pos + i | |
| 1913 | - | var src_end int = src_start + i | |
| 1914 | - | ||
| 1915 | - | /* Update the recent distances cache. */ | |
| 1916 | - | s.dist_rb[s.dist_rb_idx&3] = s.distance_code | |
| 1917 | - | ||
| 1918 | - | s.dist_rb_idx++ | |
| 1919 | - | s.meta_block_remaining_len -= i | |
| 1920 | - | ||
| 1921 | - | /* There are 32+ bytes of slack in the ring-buffer allocation. | |
| 1922 | - | Also, we have 16 short codes, that make these 16 bytes irrelevant | |
| 1923 | - | in the ring-buffer. Let's copy over them as a first guess. */ | |
| 1924 | - | copy(copy_dst, copy_src[:16]) | |
| 1925 | - | ||
| 1926 | - | if src_end > pos && dst_end > src_start { | |
| 1927 | - | /* Regions intersect. */ | |
| 1928 | - | goto CommandPostWrapCopy | |
| 1929 | - | } | |
| 1930 | - | ||
| 1931 | - | if dst_end >= s.ringbuffer_size || src_end >= s.ringbuffer_size { | |
| 1932 | - | /* At least one region wraps. */ | |
| 1933 | - | goto CommandPostWrapCopy | |
| 1934 | - | } | |
| 1935 | - | ||
| 1936 | - | pos += i | |
| 1937 | - | if i > 16 { | |
| 1938 | - | if i > 32 { | |
| 1939 | - | copy(copy_dst[16:], copy_src[16:][:uint(i-16)]) | |
| 1940 | - | } else { | |
| 1941 | - | /* This branch covers about 45% cases. | |
| 1942 | - | Fixed size short copy allows more compiler optimizations. */ | |
| 1943 | - | copy(copy_dst[16:], copy_src[16:][:16]) | |
| 1944 | - | } | |
| 1945 | - | } | |
| 1946 | - | } | |
| 1947 | - | ||
| 1948 | - | if s.meta_block_remaining_len <= 0 { | |
| 1949 | - | /* Next metablock, if any. */ | |
| 1950 | - | s.state = stateMetablockDone | |
| 1951 | - | ||
| 1952 | - | goto saveStateAndReturn | |
| 1953 | - | } else { | |
| 1954 | - | goto CommandBegin | |
| 1955 | - | } | |
| 1956 | - | CommandPostWrapCopy: | |
| 1957 | - | { | |
| 1958 | - | var wrap_guard int = s.ringbuffer_size - pos | |
| 1959 | - | for { | |
| 1960 | - | i-- | |
| 1961 | - | if i < 0 { | |
| 1962 | - | break | |
| 1963 | - | } | |
| 1964 | - | s.ringbuffer[pos] = s.ringbuffer[(pos-s.distance_code)&s.ringbuffer_mask] | |
| 1965 | - | pos++ | |
| 1966 | - | wrap_guard-- | |
| 1967 | - | if wrap_guard == 0 { | |
| 1968 | - | s.state = stateCommandPostWrite2 | |
| 1969 | - | goto saveStateAndReturn | |
| 1970 | - | } | |
| 1971 | - | } | |
| 1972 | - | } | |
| 1973 | - | ||
| 1974 | - | if s.meta_block_remaining_len <= 0 { | |
| 1975 | - | /* Next metablock, if any. */ | |
| 1976 | - | s.state = stateMetablockDone | |
| 1977 | - | ||
| 1978 | - | goto saveStateAndReturn | |
| 1979 | - | } else { | |
| 1980 | - | goto CommandBegin | |
| 1981 | - | } | |
| 1982 | - | ||
| 1983 | - | saveStateAndReturn: | |
| 1984 | - | s.pos = pos | |
| 1985 | - | s.loop_counter = i | |
| 1986 | - | return result | |
| 1987 | - | } | |
| 1988 | - | ||
| 1989 | - | func processCommands(s *Reader) int { | |
| 1990 | - | return processCommandsInternal(0, s) | |
| 1991 | - | } | |
| 1992 | - | ||
| 1993 | - | func safeProcessCommands(s *Reader) int { | |
| 1994 | - | return processCommandsInternal(1, s) | |
| 1995 | - | } | |
| 1996 | - | ||
| 1997 | - | /* Returns the maximum number of distance symbols which can only represent | |
| 1998 | - | distances not exceeding BROTLI_MAX_ALLOWED_DISTANCE. */ | |
| 1999 | - | ||
| 2000 | - | var maxDistanceSymbol_bound = [maxNpostfix + 1]uint32{0, 4, 12, 28} | |
| 2001 | - | var maxDistanceSymbol_diff = [maxNpostfix + 1]uint32{73, 126, 228, 424} | |
| 2002 | - | ||
| 2003 | - | func maxDistanceSymbol(ndirect uint32, npostfix uint32) uint32 { | |
| 2004 | - | var postfix uint32 = 1 << npostfix | |
| 2005 | - | if ndirect < maxDistanceSymbol_bound[npostfix] { | |
| 2006 | - | return ndirect + maxDistanceSymbol_diff[npostfix] + postfix | |
| 2007 | - | } else if ndirect > maxDistanceSymbol_bound[npostfix]+postfix { | |
| 2008 | - | return ndirect + maxDistanceSymbol_diff[npostfix] | |
| 2009 | - | } else { | |
| 2010 | - | return maxDistanceSymbol_bound[npostfix] + maxDistanceSymbol_diff[npostfix] + postfix | |
| 2011 | - | } | |
| 2012 | - | } | |
| 2013 | - | ||
| 2014 | - | /* Invariant: input stream is never overconsumed: | |
| 2015 | - | - invalid input implies that the whole stream is invalid -> any amount of | |
| 2016 | - | input could be read and discarded | |
| 2017 | - | - when result is "needs more input", then at least one more byte is REQUIRED | |
| 2018 | - | to complete decoding; all input data MUST be consumed by decoder, so | |
| 2019 | - | client could swap the input buffer | |
| 2020 | - | - when result is "needs more output" decoder MUST ensure that it doesn't | |
| 2021 | - | hold more than 7 bits in bit reader; this saves client from swapping input | |
| 2022 | - | buffer ahead of time | |
| 2023 | - | - when result is "success" decoder MUST return all unused data back to input | |
| 2024 | - | buffer; this is possible because the invariant is held on enter */ | |
| 2025 | - | func decoderDecompressStream(s *Reader, available_in *uint, next_in *[]byte, available_out *uint, next_out *[]byte) int { | |
| 2026 | - | var result int = decoderSuccess | |
| 2027 | - | var br *bitReader = &s.br | |
| 2028 | - | ||
| 2029 | - | /* Do not try to process further in a case of unrecoverable error. */ | |
| 2030 | - | if int(s.error_code) < 0 { | |
| 2031 | - | return decoderResultError | |
| 2032 | - | } | |
| 2033 | - | ||
| 2034 | - | if *available_out != 0 && (next_out == nil || *next_out == nil) { | |
| 2035 | - | return saveErrorCode(s, decoderErrorInvalidArguments) | |
| 2036 | - | } | |
| 2037 | - | ||
| 2038 | - | if *available_out == 0 { | |
| 2039 | - | next_out = nil | |
| 2040 | - | } | |
| 2041 | - | if s.buffer_length == 0 { /* Just connect bit reader to input stream. */ | |
| 2042 | - | br.input_len = *available_in | |
| 2043 | - | br.input = *next_in | |
| 2044 | - | br.byte_pos = 0 | |
| 2045 | - | } else { | |
| 2046 | - | /* At least one byte of input is required. More than one byte of input may | |
| 2047 | - | be required to complete the transaction -> reading more data must be | |
| 2048 | - | done in a loop -> do it in a main loop. */ | |
| 2049 | - | result = decoderNeedsMoreInput | |
| 2050 | - | ||
| 2051 | - | br.input = s.buffer.u8[:] | |
| 2052 | - | br.byte_pos = 0 | |
| 2053 | - | } | |
| 2054 | - | ||
| 2055 | - | /* State machine */ | |
| 2056 | - | for { | |
| 2057 | - | if result != decoderSuccess { | |
| 2058 | - | /* Error, needs more input/output. */ | |
| 2059 | - | if result == decoderNeedsMoreInput { | |
| 2060 | - | if s.ringbuffer != nil { /* Pro-actively push output. */ | |
| 2061 | - | var intermediate_result int = writeRingBuffer(s, available_out, next_out, nil, true) | |
| 2062 | - | ||
| 2063 | - | /* WriteRingBuffer checks s->meta_block_remaining_len validity. */ | |
| 2064 | - | if int(intermediate_result) < 0 { | |
| 2065 | - | result = intermediate_result | |
| 2066 | - | break | |
| 2067 | - | } | |
| 2068 | - | } | |
| 2069 | - | ||
| 2070 | - | if s.buffer_length != 0 { /* Used with internal buffer. */ | |
| 2071 | - | if br.byte_pos == br.input_len { | |
| 2072 | - | /* Successfully finished read transaction. | |
| 2073 | - | Accumulator contains less than 8 bits, because internal buffer | |
| 2074 | - | is expanded byte-by-byte until it is enough to complete read. */ | |
| 2075 | - | s.buffer_length = 0 | |
| 2076 | - | ||
| 2077 | - | /* Switch to input stream and restart. */ | |
| 2078 | - | result = decoderSuccess | |
| 2079 | - | ||
| 2080 | - | br.input_len = *available_in | |
| 2081 | - | br.input = *next_in | |
| 2082 | - | br.byte_pos = 0 | |
| 2083 | - | continue | |
| 2084 | - | } else if *available_in != 0 { | |
| 2085 | - | /* Not enough data in buffer, but can take one more byte from | |
| 2086 | - | input stream. */ | |
| 2087 | - | result = decoderSuccess | |
| 2088 | - | ||
| 2089 | - | s.buffer.u8[s.buffer_length] = (*next_in)[0] | |
| 2090 | - | s.buffer_length++ | |
| 2091 | - | br.input_len = uint(s.buffer_length) | |
| 2092 | - | *next_in = (*next_in)[1:] | |
| 2093 | - | (*available_in)-- | |
| 2094 | - | ||
| 2095 | - | /* Retry with more data in buffer. */ | |
| 2096 | - | continue | |
| 2097 | - | } | |
| 2098 | - | ||
| 2099 | - | /* Can't finish reading and no more input. */ | |
| 2100 | - | break | |
| 2101 | - | /* Input stream doesn't contain enough input. */ | |
| 2102 | - | } else { | |
| 2103 | - | /* Copy tail to internal buffer and return. */ | |
| 2104 | - | *next_in = br.input[br.byte_pos:] | |
| 2105 | - | ||
| 2106 | - | *available_in = br.input_len - br.byte_pos | |
| 2107 | - | for *available_in != 0 { | |
| 2108 | - | s.buffer.u8[s.buffer_length] = (*next_in)[0] | |
| 2109 | - | s.buffer_length++ | |
| 2110 | - | *next_in = (*next_in)[1:] | |
| 2111 | - | (*available_in)-- | |
| 2112 | - | } | |
| 2113 | - | ||
| 2114 | - | break | |
| 2115 | - | } | |
| 2116 | - | } | |
| 2117 | - | ||
| 2118 | - | /* Unreachable. */ | |
| 2119 | - | ||
| 2120 | - | /* Fail or needs more output. */ | |
| 2121 | - | if s.buffer_length != 0 { | |
| 2122 | - | /* Just consumed the buffered input and produced some output. Otherwise | |
| 2123 | - | it would result in "needs more input". Reset internal buffer. */ | |
| 2124 | - | s.buffer_length = 0 | |
| 2125 | - | } else { | |
| 2126 | - | /* Using input stream in last iteration. When decoder switches to input | |
| 2127 | - | stream it has less than 8 bits in accumulator, so it is safe to | |
| 2128 | - | return unused accumulator bits there. */ | |
| 2129 | - | bitReaderUnload(br) | |
| 2130 | - | ||
| 2131 | - | *available_in = br.input_len - br.byte_pos | |
| 2132 | - | *next_in = br.input[br.byte_pos:] | |
| 2133 | - | } | |
| 2134 | - | ||
| 2135 | - | break | |
| 2136 | - | } | |
| 2137 | - | ||
| 2138 | - | switch s.state { | |
| 2139 | - | /* Prepare to the first read. */ | |
| 2140 | - | case stateUninited: | |
| 2141 | - | if !warmupBitReader(br) { | |
| 2142 | - | result = decoderNeedsMoreInput | |
| 2143 | - | break | |
| 2144 | - | } | |
| 2145 | - | ||
| 2146 | - | /* Decode window size. */ | |
| 2147 | - | result = decodeWindowBits(s, br) /* Reads 1..8 bits. */ | |
| 2148 | - | if result != decoderSuccess { | |
| 2149 | - | break | |
| 2150 | - | } | |
| 2151 | - | ||
| 2152 | - | if s.large_window { | |
| 2153 | - | s.state = stateLargeWindowBits | |
| 2154 | - | break | |
| 2155 | - | } | |
| 2156 | - | ||
| 2157 | - | s.state = stateInitialize | |
| 2158 | - | ||
| 2159 | - | case stateLargeWindowBits: | |
| 2160 | - | if !safeReadBits(br, 6, &s.window_bits) { | |
| 2161 | - | result = decoderNeedsMoreInput | |
| 2162 | - | break | |
| 2163 | - | } | |
| 2164 | - | ||
| 2165 | - | if s.window_bits < largeMinWbits || s.window_bits > largeMaxWbits { | |
| 2166 | - | result = decoderErrorFormatWindowBits | |
| 2167 | - | break | |
| 2168 | - | } | |
| 2169 | - | ||
| 2170 | - | s.state = stateInitialize | |
| 2171 | - | fallthrough | |
| 2172 | - | ||
| 2173 | - | /* Maximum distance, see section 9.1. of the spec. */ | |
| 2174 | - | /* Fall through. */ | |
| 2175 | - | case stateInitialize: | |
| 2176 | - | s.max_backward_distance = (1 << s.window_bits) - windowGap | |
| 2177 | - | ||
| 2178 | - | if s.block_type_trees == nil { | |
| 2179 | - | /* Allocate memory for both block_type_trees and block_len_trees. */ | |
| 2180 | - | s.block_type_trees = make([]huffmanCode, (3 * (huffmanMaxSize258 + huffmanMaxSize26))) | |
| 2181 | - | } | |
| 2182 | - | ||
| 2183 | - | s.block_len_trees = s.block_type_trees[3*huffmanMaxSize258:] | |
| 2184 | - | ||
| 2185 | - | s.state = stateMetablockBegin | |
| 2186 | - | fallthrough | |
| 2187 | - | ||
| 2188 | - | /* Fall through. */ | |
| 2189 | - | case stateMetablockBegin: | |
| 2190 | - | decoderStateMetablockBegin(s) | |
| 2191 | - | ||
| 2192 | - | s.state = stateMetablockHeader | |
| 2193 | - | fallthrough | |
| 2194 | - | ||
| 2195 | - | /* Fall through. */ | |
| 2196 | - | case stateMetablockHeader: | |
| 2197 | - | result = decodeMetaBlockLength(s, br) | |
| 2198 | - | /* Reads 2 - 31 bits. */ | |
| 2199 | - | if result != decoderSuccess { | |
| 2200 | - | break | |
| 2201 | - | } | |
| 2202 | - | ||
| 2203 | - | if s.is_metadata != 0 || s.is_uncompressed != 0 { | |
| 2204 | - | if !bitReaderJumpToByteBoundary(br) { | |
| 2205 | - | result = decoderErrorFormatPadding1 | |
| 2206 | - | break | |
| 2207 | - | } | |
| 2208 | - | } | |
| 2209 | - | ||
| 2210 | - | if s.is_metadata != 0 { | |
| 2211 | - | s.state = stateMetadata | |
| 2212 | - | break | |
| 2213 | - | } | |
| 2214 | - | ||
| 2215 | - | if s.meta_block_remaining_len == 0 { | |
| 2216 | - | s.state = stateMetablockDone | |
| 2217 | - | break | |
| 2218 | - | } | |
| 2219 | - | ||
| 2220 | - | calculateRingBufferSize(s) | |
| 2221 | - | if s.is_uncompressed != 0 { | |
| 2222 | - | s.state = stateUncompressed | |
| 2223 | - | break | |
| 2224 | - | } | |
| 2225 | - | ||
| 2226 | - | s.loop_counter = 0 | |
| 2227 | - | s.state = stateHuffmanCode0 | |
| 2228 | - | ||
| 2229 | - | case stateUncompressed: | |
| 2230 | - | result = copyUncompressedBlockToOutput(available_out, next_out, nil, s) | |
| 2231 | - | if result == decoderSuccess { | |
| 2232 | - | s.state = stateMetablockDone | |
| 2233 | - | } | |
| 2234 | - | ||
| 2235 | - | case stateMetadata: | |
| 2236 | - | for ; s.meta_block_remaining_len > 0; s.meta_block_remaining_len-- { | |
| 2237 | - | var bits uint32 | |
| 2238 | - | ||
| 2239 | - | /* Read one byte and ignore it. */ | |
| 2240 | - | if !safeReadBits(br, 8, &bits) { | |
| 2241 | - | result = decoderNeedsMoreInput | |
| 2242 | - | break | |
| 2243 | - | } | |
| 2244 | - | } | |
| 2245 | - | ||
| 2246 | - | if result == decoderSuccess { | |
| 2247 | - | s.state = stateMetablockDone | |
| 2248 | - | } | |
| 2249 | - | ||
| 2250 | - | case stateHuffmanCode0: | |
| 2251 | - | if s.loop_counter >= 3 { | |
| 2252 | - | s.state = stateMetablockHeader2 | |
| 2253 | - | break | |
| 2254 | - | } | |
| 2255 | - | ||
| 2256 | - | /* Reads 1..11 bits. */ | |
| 2257 | - | result = decodeVarLenUint8(s, br, &s.num_block_types[s.loop_counter]) | |
| 2258 | - | ||
| 2259 | - | if result != decoderSuccess { | |
| 2260 | - | break | |
| 2261 | - | } | |
| 2262 | - | ||
| 2263 | - | s.num_block_types[s.loop_counter]++ | |
| 2264 | - | if s.num_block_types[s.loop_counter] < 2 { | |
| 2265 | - | s.loop_counter++ | |
| 2266 | - | break | |
| 2267 | - | } | |
| 2268 | - | ||
| 2269 | - | s.state = stateHuffmanCode1 | |
| 2270 | - | fallthrough | |
| 2271 | - | ||
| 2272 | - | case stateHuffmanCode1: | |
| 2273 | - | { | |
| 2274 | - | var alphabet_size uint32 = s.num_block_types[s.loop_counter] + 2 | |
| 2275 | - | var tree_offset int = s.loop_counter * huffmanMaxSize258 | |
| 2276 | - | result = readHuffmanCode(alphabet_size, alphabet_size, s.block_type_trees[tree_offset:], nil, s) | |
| 2277 | - | if result != decoderSuccess { | |
| 2278 | - | break | |
| 2279 | - | } | |
| 2280 | - | s.state = stateHuffmanCode2 | |
| 2281 | - | } | |
| 2282 | - | fallthrough | |
| 2283 | - | ||
| 2284 | - | case stateHuffmanCode2: | |
| 2285 | - | { | |
| 2286 | - | var alphabet_size uint32 = numBlockLenSymbols | |
| 2287 | - | var tree_offset int = s.loop_counter * huffmanMaxSize26 | |
| 2288 | - | result = readHuffmanCode(alphabet_size, alphabet_size, s.block_len_trees[tree_offset:], nil, s) | |
| 2289 | - | if result != decoderSuccess { | |
| 2290 | - | break | |
| 2291 | - | } | |
| 2292 | - | s.state = stateHuffmanCode3 | |
| 2293 | - | } | |
| 2294 | - | fallthrough | |
| 2295 | - | ||
| 2296 | - | case stateHuffmanCode3: | |
| 2297 | - | var tree_offset int = s.loop_counter * huffmanMaxSize26 | |
| 2298 | - | if !safeReadBlockLength(s, &s.block_length[s.loop_counter], s.block_len_trees[tree_offset:], br) { | |
| 2299 | - | result = decoderNeedsMoreInput | |
| 2300 | - | break | |
| 2301 | - | } | |
| 2302 | - | ||
| 2303 | - | s.loop_counter++ | |
| 2304 | - | s.state = stateHuffmanCode0 | |
| 2305 | - | ||
| 2306 | - | case stateMetablockHeader2: | |
| 2307 | - | { | |
| 2308 | - | var bits uint32 | |
| 2309 | - | if !safeReadBits(br, 6, &bits) { | |
| 2310 | - | result = decoderNeedsMoreInput | |
| 2311 | - | break | |
| 2312 | - | } | |
| 2313 | - | ||
| 2314 | - | s.distance_postfix_bits = bits & bitMask(2) | |
| 2315 | - | bits >>= 2 | |
| 2316 | - | s.num_direct_distance_codes = numDistanceShortCodes + (bits << s.distance_postfix_bits) | |
| 2317 | - | s.distance_postfix_mask = int(bitMask(s.distance_postfix_bits)) | |
| 2318 | - | s.context_modes = make([]byte, uint(s.num_block_types[0])) | |
| 2319 | - | if s.context_modes == nil { | |
| 2320 | - | result = decoderErrorAllocContextModes | |
| 2321 | - | break | |
| 2322 | - | } | |
| 2323 | - | ||
| 2324 | - | s.loop_counter = 0 | |
| 2325 | - | s.state = stateContextModes | |
| 2326 | - | } | |
| 2327 | - | fallthrough | |
| 2328 | - | ||
| 2329 | - | case stateContextModes: | |
| 2330 | - | result = readContextModes(s) | |
| 2331 | - | ||
| 2332 | - | if result != decoderSuccess { | |
| 2333 | - | break | |
| 2334 | - | } | |
| 2335 | - | ||
| 2336 | - | s.state = stateContextMap1 | |
| 2337 | - | fallthrough | |
| 2338 | - | ||
| 2339 | - | case stateContextMap1: | |
| 2340 | - | result = decodeContextMap(s.num_block_types[0]<<literalContextBits, &s.num_literal_htrees, &s.context_map, s) | |
| 2341 | - | ||
| 2342 | - | if result != decoderSuccess { | |
| 2343 | - | break | |
| 2344 | - | } | |
| 2345 | - | ||
| 2346 | - | detectTrivialLiteralBlockTypes(s) | |
| 2347 | - | s.state = stateContextMap2 | |
| 2348 | - | fallthrough | |
| 2349 | - | ||
| 2350 | - | case stateContextMap2: | |
| 2351 | - | { | |
| 2352 | - | var num_direct_codes uint32 = s.num_direct_distance_codes - numDistanceShortCodes | |
| 2353 | - | var num_distance_codes uint32 | |
| 2354 | - | var max_distance_symbol uint32 | |
| 2355 | - | if s.large_window { | |
| 2356 | - | num_distance_codes = uint32(distanceAlphabetSize(uint(s.distance_postfix_bits), uint(num_direct_codes), largeMaxDistanceBits)) | |
| 2357 | - | max_distance_symbol = maxDistanceSymbol(num_direct_codes, s.distance_postfix_bits) | |
| 2358 | - | } else { | |
| 2359 | - | num_distance_codes = uint32(distanceAlphabetSize(uint(s.distance_postfix_bits), uint(num_direct_codes), maxDistanceBits)) | |
| 2360 | - | max_distance_symbol = num_distance_codes | |
| 2361 | - | } | |
| 2362 | - | var allocation_success bool = true | |
| 2363 | - | result = decodeContextMap(s.num_block_types[2]<<distanceContextBits, &s.num_dist_htrees, &s.dist_context_map, s) | |
| 2364 | - | if result != decoderSuccess { | |
| 2365 | - | break | |
| 2366 | - | } | |
| 2367 | - | ||
| 2368 | - | decoderHuffmanTreeGroupInit(&s.literal_hgroup, numLiteralSymbols, numLiteralSymbols, s.num_literal_htrees) | |
| 2369 | - | decoderHuffmanTreeGroupInit(&s.insert_copy_hgroup, numCommandSymbols, numCommandSymbols, s.num_block_types[1]) | |
| 2370 | - | decoderHuffmanTreeGroupInit(&s.distance_hgroup, num_distance_codes, max_distance_symbol, s.num_dist_htrees) | |
| 2371 | - | ||
| 2372 | - | if !allocation_success { | |
| 2373 | - | return saveErrorCode(s, decoderErrorAllocTreeGroups) | |
| 2374 | - | } | |
| 2375 | - | ||
| 2376 | - | s.loop_counter = 0 | |
| 2377 | - | s.state = stateTreeGroup | |
| 2378 | - | } | |
| 2379 | - | fallthrough | |
| 2380 | - | ||
| 2381 | - | case stateTreeGroup: | |
| 2382 | - | var hgroup *huffmanTreeGroup = nil | |
| 2383 | - | switch s.loop_counter { | |
| 2384 | - | case 0: | |
| 2385 | - | hgroup = &s.literal_hgroup | |
| 2386 | - | case 1: | |
| 2387 | - | hgroup = &s.insert_copy_hgroup | |
| 2388 | - | case 2: | |
| 2389 | - | hgroup = &s.distance_hgroup | |
| 2390 | - | default: | |
| 2391 | - | return saveErrorCode(s, decoderErrorUnreachable) | |
| 2392 | - | } | |
| 2393 | - | ||
| 2394 | - | result = huffmanTreeGroupDecode(hgroup, s) | |
| 2395 | - | if result != decoderSuccess { | |
| 2396 | - | break | |
| 2397 | - | } | |
| 2398 | - | s.loop_counter++ | |
| 2399 | - | if s.loop_counter >= 3 { | |
| 2400 | - | prepareLiteralDecoding(s) | |
| 2401 | - | s.dist_context_map_slice = s.dist_context_map | |
| 2402 | - | s.htree_command = []huffmanCode(s.insert_copy_hgroup.htrees[0]) | |
| 2403 | - | if !ensureRingBuffer(s) { | |
| 2404 | - | result = decoderErrorAllocRingBuffer2 | |
| 2405 | - | break | |
| 2406 | - | } | |
| 2407 | - | ||
| 2408 | - | s.state = stateCommandBegin | |
| 2409 | - | } | |
| 2410 | - | ||
| 2411 | - | case stateCommandBegin, stateCommandInner, stateCommandPostDecodeLiterals, stateCommandPostWrapCopy: | |
| 2412 | - | result = processCommands(s) | |
| 2413 | - | ||
| 2414 | - | if result == decoderNeedsMoreInput { | |
| 2415 | - | result = safeProcessCommands(s) | |
| 2416 | - | } | |
| 2417 | - | ||
| 2418 | - | case stateCommandInnerWrite, stateCommandPostWrite1, stateCommandPostWrite2: | |
| 2419 | - | result = writeRingBuffer(s, available_out, next_out, nil, false) | |
| 2420 | - | ||
| 2421 | - | if result != decoderSuccess { | |
| 2422 | - | break | |
| 2423 | - | } | |
| 2424 | - | ||
| 2425 | - | wrapRingBuffer(s) | |
| 2426 | - | if s.ringbuffer_size == 1<<s.window_bits { | |
| 2427 | - | s.max_distance = s.max_backward_distance | |
| 2428 | - | } | |
| 2429 | - | ||
| 2430 | - | if s.state == stateCommandPostWrite1 { | |
| 2431 | - | if s.meta_block_remaining_len == 0 { | |
| 2432 | - | /* Next metablock, if any. */ | |
| 2433 | - | s.state = stateMetablockDone | |
| 2434 | - | } else { | |
| 2435 | - | s.state = stateCommandBegin | |
| 2436 | - | } | |
| 2437 | - | } else if s.state == stateCommandPostWrite2 { | |
| 2438 | - | s.state = stateCommandPostWrapCopy /* BROTLI_STATE_COMMAND_INNER_WRITE */ | |
| 2439 | - | } else { | |
| 2440 | - | if s.loop_counter == 0 { | |
| 2441 | - | if s.meta_block_remaining_len == 0 { | |
| 2442 | - | s.state = stateMetablockDone | |
| 2443 | - | } else { | |
| 2444 | - | s.state = stateCommandPostDecodeLiterals | |
| 2445 | - | } | |
| 2446 | - | ||
| 2447 | - | break | |
| 2448 | - | } | |
| 2449 | - | ||
| 2450 | - | s.state = stateCommandInner | |
| 2451 | - | } | |
| 2452 | - | ||
| 2453 | - | case stateMetablockDone: | |
| 2454 | - | if s.meta_block_remaining_len < 0 { | |
| 2455 | - | result = decoderErrorFormatBlockLength2 | |
| 2456 | - | break | |
| 2457 | - | } | |
| 2458 | - | ||
| 2459 | - | decoderStateCleanupAfterMetablock(s) | |
| 2460 | - | if s.is_last_metablock == 0 { | |
| 2461 | - | s.state = stateMetablockBegin | |
| 2462 | - | break | |
| 2463 | - | } | |
| 2464 | - | ||
| 2465 | - | if !bitReaderJumpToByteBoundary(br) { | |
| 2466 | - | result = decoderErrorFormatPadding2 | |
| 2467 | - | break | |
| 2468 | - | } | |
| 2469 | - | ||
| 2470 | - | if s.buffer_length == 0 { | |
| 2471 | - | bitReaderUnload(br) | |
| 2472 | - | *available_in = br.input_len - br.byte_pos | |
| 2473 | - | *next_in = br.input[br.byte_pos:] | |
| 2474 | - | } | |
| 2475 | - | ||
| 2476 | - | s.state = stateDone | |
| 2477 | - | fallthrough | |
| 2478 | - | ||
| 2479 | - | case stateDone: | |
| 2480 | - | if s.ringbuffer != nil { | |
| 2481 | - | result = writeRingBuffer(s, available_out, next_out, nil, true) | |
| 2482 | - | if result != decoderSuccess { | |
| 2483 | - | break | |
| 2484 | - | } | |
| 2485 | - | } | |
| 2486 | - | ||
| 2487 | - | return saveErrorCode(s, result) | |
| 2488 | - | } | |
| 2489 | - | } | |
| 2490 | - | ||
| 2491 | - | return saveErrorCode(s, result) | |
| 2492 | - | } | |
| 2493 | - | ||
| 2494 | - | func decoderHasMoreOutput(s *Reader) bool { | |
| 2495 | - | /* After unrecoverable error remaining output is considered nonsensical. */ | |
| 2496 | - | if int(s.error_code) < 0 { | |
| 2497 | - | return false | |
| 2498 | - | } | |
| 2499 | - | ||
| 2500 | - | return s.ringbuffer != nil && unwrittenBytes(s, false) != 0 | |
| 2501 | - | } | |
| 2502 | - | ||
| 2503 | - | func decoderGetErrorCode(s *Reader) int { | |
| 2504 | - | return int(s.error_code) | |
| 2505 | - | } | |
| 2506 | - | ||
| 2507 | - | func decoderErrorString(c int) string { | |
| 2508 | - | switch c { | |
| 2509 | - | case decoderNoError: | |
| 2510 | - | return "NO_ERROR" | |
| 2511 | - | case decoderSuccess: | |
| 2512 | - | return "SUCCESS" | |
| 2513 | - | case decoderNeedsMoreInput: | |
| 2514 | - | return "NEEDS_MORE_INPUT" | |
| 2515 | - | case decoderNeedsMoreOutput: | |
| 2516 | - | return "NEEDS_MORE_OUTPUT" | |
| 2517 | - | case decoderErrorFormatExuberantNibble: | |
| 2518 | - | return "EXUBERANT_NIBBLE" | |
| 2519 | - | case decoderErrorFormatReserved: | |
| 2520 | - | return "RESERVED" | |
| 2521 | - | case decoderErrorFormatExuberantMetaNibble: | |
| 2522 | - | return "EXUBERANT_META_NIBBLE" | |
| 2523 | - | case decoderErrorFormatSimpleHuffmanAlphabet: | |
| 2524 | - | return "SIMPLE_HUFFMAN_ALPHABET" | |
| 2525 | - | case decoderErrorFormatSimpleHuffmanSame: | |
| 2526 | - | return "SIMPLE_HUFFMAN_SAME" | |
| 2527 | - | case decoderErrorFormatClSpace: | |
| 2528 | - | return "CL_SPACE" | |
| 2529 | - | case decoderErrorFormatHuffmanSpace: | |
| 2530 | - | return "HUFFMAN_SPACE" | |
| 2531 | - | case decoderErrorFormatContextMapRepeat: | |
| 2532 | - | return "CONTEXT_MAP_REPEAT" | |
| 2533 | - | case decoderErrorFormatBlockLength1: | |
| 2534 | - | return "BLOCK_LENGTH_1" | |
| 2535 | - | case decoderErrorFormatBlockLength2: | |
| 2536 | - | return "BLOCK_LENGTH_2" | |
| 2537 | - | case decoderErrorFormatTransform: | |
| 2538 | - | return "TRANSFORM" | |
| 2539 | - | case decoderErrorFormatDictionary: | |
| 2540 | - | return "DICTIONARY" | |
| 2541 | - | case decoderErrorFormatWindowBits: | |
| 2542 | - | return "WINDOW_BITS" | |
| 2543 | - | case decoderErrorFormatPadding1: | |
| 2544 | - | return "PADDING_1" | |
| 2545 | - | case decoderErrorFormatPadding2: | |
| 2546 | - | return "PADDING_2" | |
| 2547 | - | case decoderErrorFormatDistance: | |
| 2548 | - | return "DISTANCE" | |
| 2549 | - | case decoderErrorDictionaryNotSet: | |
| 2550 | - | return "DICTIONARY_NOT_SET" | |
| 2551 | - | case decoderErrorInvalidArguments: | |
| 2552 | - | return "INVALID_ARGUMENTS" | |
| 2553 | - | case decoderErrorAllocContextModes: | |
| 2554 | - | return "CONTEXT_MODES" | |
| 2555 | - | case decoderErrorAllocTreeGroups: | |
| 2556 | - | return "TREE_GROUPS" | |
| 2557 | - | case decoderErrorAllocContextMap: | |
| 2558 | - | return "CONTEXT_MAP" | |
| 2559 | - | case decoderErrorAllocRingBuffer1: | |
| 2560 | - | return "RING_BUFFER_1" | |
| 2561 | - | case decoderErrorAllocRingBuffer2: | |
| 2562 | - | return "RING_BUFFER_2" | |
| 2563 | - | case decoderErrorAllocBlockTypeTrees: | |
| 2564 | - | return "BLOCK_TYPE_TREES" | |
| 2565 | - | case decoderErrorUnreachable: | |
| 2566 | - | return "UNREACHABLE" | |
| 2567 | - | default: | |
| 2568 | - | return "INVALID" | |
| 2569 | - | } | |
| 2570 | - | } | |
| @@ -1,2570 +0,0 @@ | |||||
| 1 | - | package brotli | |||
| 2 | - | ||||
| 3 | - | /* Copyright 2013 Google Inc. All Rights Reserved. | |||
| 4 | - | ||||
| 5 | - | Distributed under MIT license. | |||
| 6 | - | See file LICENSE for detail or copy at https://opensource.org/licenses/MIT | |||
| 7 | - | */ | |||
| 8 | - | ||||
| 9 | - | const ( | |||
| 10 | - | decoderResultError = 0 | |||
| 11 | - | decoderResultSuccess = 1 | |||
| 12 | - | decoderResultNeedsMoreInput = 2 | |||
| 13 | - | decoderResultNeedsMoreOutput = 3 | |||
| 14 | - | ) | |||
| 15 | - | ||||
| 16 | - | /** | |||
| 17 | - | * Error code for detailed logging / production debugging. | |||
| 18 | - | * | |||
| 19 | - | * See ::BrotliDecoderGetErrorCode and ::BROTLI_LAST_ERROR_CODE. | |||
| 20 | - | */ | |||
| 21 | - | const ( | |||
| 22 | - | decoderNoError = 0 | |||
| 23 | - | decoderSuccess = 1 | |||
| 24 | - | decoderNeedsMoreInput = 2 | |||
| 25 | - | decoderNeedsMoreOutput = 3 | |||
| 26 | - | decoderErrorFormatExuberantNibble = -1 | |||
| 27 | - | decoderErrorFormatReserved = -2 | |||
| 28 | - | decoderErrorFormatExuberantMetaNibble = -3 | |||
| 29 | - | decoderErrorFormatSimpleHuffmanAlphabet = -4 | |||
| 30 | - | decoderErrorFormatSimpleHuffmanSame = -5 | |||
| 31 | - | decoderErrorFormatClSpace = -6 | |||
| 32 | - | decoderErrorFormatHuffmanSpace = -7 | |||
| 33 | - | decoderErrorFormatContextMapRepeat = -8 | |||
| 34 | - | decoderErrorFormatBlockLength1 = -9 | |||
| 35 | - | decoderErrorFormatBlockLength2 = -10 | |||
| 36 | - | decoderErrorFormatTransform = -11 | |||
| 37 | - | decoderErrorFormatDictionary = -12 | |||
| 38 | - | decoderErrorFormatWindowBits = -13 | |||
| 39 | - | decoderErrorFormatPadding1 = -14 | |||
| 40 | - | decoderErrorFormatPadding2 = -15 | |||
| 41 | - | decoderErrorFormatDistance = -16 | |||
| 42 | - | decoderErrorDictionaryNotSet = -19 | |||
| 43 | - | decoderErrorInvalidArguments = -20 | |||
| 44 | - | decoderErrorAllocContextModes = -21 | |||
| 45 | - | decoderErrorAllocTreeGroups = -22 | |||
| 46 | - | decoderErrorAllocContextMap = -25 | |||
| 47 | - | decoderErrorAllocRingBuffer1 = -26 | |||
| 48 | - | decoderErrorAllocRingBuffer2 = -27 | |||
| 49 | - | decoderErrorAllocBlockTypeTrees = -30 | |||
| 50 | - | decoderErrorUnreachable = -31 | |||
| 51 | - | ) | |||
| 52 | - | ||||
| 53 | - | const huffmanTableBits = 8 | |||
| 54 | - | ||||
| 55 | - | const huffmanTableMask = 0xFF | |||
| 56 | - | ||||
| 57 | - | /* We need the slack region for the following reasons: | |||
| 58 | - | - doing up to two 16-byte copies for fast backward copying | |||
| 59 | - | - inserting transformed dictionary word (5 prefix + 24 base + 8 suffix) */ | |||
| 60 | - | const kRingBufferWriteAheadSlack uint32 = 42 | |||
| 61 | - | ||||
| 62 | - | var kCodeLengthCodeOrder = [codeLengthCodes]byte{1, 2, 3, 4, 0, 5, 17, 6, 16, 7, 8, 9, 10, 11, 12, 13, 14, 15} | |||
| 63 | - | ||||
| 64 | - | /* Static prefix code for the complex code length code lengths. */ | |||
| 65 | - | var kCodeLengthPrefixLength = [16]byte{2, 2, 2, 3, 2, 2, 2, 4, 2, 2, 2, 3, 2, 2, 2, 4} | |||
| 66 | - | ||||
| 67 | - | var kCodeLengthPrefixValue = [16]byte{0, 4, 3, 2, 0, 4, 3, 1, 0, 4, 3, 2, 0, 4, 3, 5} | |||
| 68 | - | ||||
| 69 | - | /* Saves error code and converts it to BrotliDecoderResult. */ | |||
| 70 | - | func saveErrorCode(s *Reader, e int) int { | |||
| 71 | - | s.error_code = int(e) | |||
| 72 | - | switch e { | |||
| 73 | - | case decoderSuccess: | |||
| 74 | - | return decoderResultSuccess | |||
| 75 | - | ||||
| 76 | - | case decoderNeedsMoreInput: | |||
| 77 | - | return decoderResultNeedsMoreInput | |||
| 78 | - | ||||
| 79 | - | case decoderNeedsMoreOutput: | |||
| 80 | - | return decoderResultNeedsMoreOutput | |||
| 81 | - | ||||
| 82 | - | default: | |||
| 83 | - | return decoderResultError | |||
| 84 | - | } | |||
| 85 | - | } | |||
| 86 | - | ||||
| 87 | - | /* Decodes WBITS by reading 1 - 7 bits, or 0x11 for "Large Window Brotli". | |||
| 88 | - | Precondition: bit-reader accumulator has at least 8 bits. */ | |||
| 89 | - | func decodeWindowBits(s *Reader, br *bitReader) int { | |||
| 90 | - | var n uint32 | |||
| 91 | - | var large_window bool = s.large_window | |||
| 92 | - | s.large_window = false | |||
| 93 | - | takeBits(br, 1, &n) | |||
| 94 | - | if n == 0 { | |||
| 95 | - | s.window_bits = 16 | |||
| 96 | - | return decoderSuccess | |||
| 97 | - | } | |||
| 98 | - | ||||
| 99 | - | takeBits(br, 3, &n) | |||
| 100 | - | if n != 0 { | |||
| 101 | - | s.window_bits = 17 + n | |||
| 102 | - | return decoderSuccess | |||
| 103 | - | } | |||
| 104 | - | ||||
| 105 | - | takeBits(br, 3, &n) | |||
| 106 | - | if n == 1 { | |||
| 107 | - | if large_window { | |||
| 108 | - | takeBits(br, 1, &n) | |||
| 109 | - | if n == 1 { | |||
| 110 | - | return decoderErrorFormatWindowBits | |||
| 111 | - | } | |||
| 112 | - | ||||
| 113 | - | s.large_window = true | |||
| 114 | - | return decoderSuccess | |||
| 115 | - | } else { | |||
| 116 | - | return decoderErrorFormatWindowBits | |||
| 117 | - | } | |||
| 118 | - | } | |||
| 119 | - | ||||
| 120 | - | if n != 0 { | |||
| 121 | - | s.window_bits = 8 + n | |||
| 122 | - | return decoderSuccess | |||
| 123 | - | } | |||
| 124 | - | ||||
| 125 | - | s.window_bits = 17 | |||
| 126 | - | return decoderSuccess | |||
| 127 | - | } | |||
| 128 | - | ||||
| 129 | - | /* Decodes a number in the range [0..255], by reading 1 - 11 bits. */ | |||
| 130 | - | func decodeVarLenUint8(s *Reader, br *bitReader, value *uint32) int { | |||
| 131 | - | var bits uint32 | |||
| 132 | - | switch s.substate_decode_uint8 { | |||
| 133 | - | case stateDecodeUint8None: | |||
| 134 | - | if !safeReadBits(br, 1, &bits) { | |||
| 135 | - | return decoderNeedsMoreInput | |||
| 136 | - | } | |||
| 137 | - | ||||
| 138 | - | if bits == 0 { | |||
| 139 | - | *value = 0 | |||
| 140 | - | return decoderSuccess | |||
| 141 | - | } | |||
| 142 | - | fallthrough | |||
| 143 | - | ||||
| 144 | - | /* Fall through. */ | |||
| 145 | - | case stateDecodeUint8Short: | |||
| 146 | - | if !safeReadBits(br, 3, &bits) { | |||
| 147 | - | s.substate_decode_uint8 = stateDecodeUint8Short | |||
| 148 | - | return decoderNeedsMoreInput | |||
| 149 | - | } | |||
| 150 | - | ||||
| 151 | - | if bits == 0 { | |||
| 152 | - | *value = 1 | |||
| 153 | - | s.substate_decode_uint8 = stateDecodeUint8None | |||
| 154 | - | return decoderSuccess | |||
| 155 | - | } | |||
| 156 | - | ||||
| 157 | - | /* Use output value as a temporary storage. It MUST be persisted. */ | |||
| 158 | - | *value = bits | |||
| 159 | - | fallthrough | |||
| 160 | - | ||||
| 161 | - | /* Fall through. */ | |||
| 162 | - | case stateDecodeUint8Long: | |||
| 163 | - | if !safeReadBits(br, *value, &bits) { | |||
| 164 | - | s.substate_decode_uint8 = stateDecodeUint8Long | |||
| 165 | - | return decoderNeedsMoreInput | |||
| 166 | - | } | |||
| 167 | - | ||||
| 168 | - | *value = (1 << *value) + bits | |||
| 169 | - | s.substate_decode_uint8 = stateDecodeUint8None | |||
| 170 | - | return decoderSuccess | |||
| 171 | - | ||||
| 172 | - | default: | |||
| 173 | - | return decoderErrorUnreachable | |||
| 174 | - | } | |||
| 175 | - | } | |||
| 176 | - | ||||
| 177 | - | /* Decodes a metablock length and flags by reading 2 - 31 bits. */ | |||
| 178 | - | func decodeMetaBlockLength(s *Reader, br *bitReader) int { | |||
| 179 | - | var bits uint32 | |||
| 180 | - | var i int | |||
| 181 | - | for { | |||
| 182 | - | switch s.substate_metablock_header { | |||
| 183 | - | case stateMetablockHeaderNone: | |||
| 184 | - | if !safeReadBits(br, 1, &bits) { | |||
| 185 | - | return decoderNeedsMoreInput | |||
| 186 | - | } | |||
| 187 | - | ||||
| 188 | - | if bits != 0 { | |||
| 189 | - | s.is_last_metablock = 1 | |||
| 190 | - | } else { | |||
| 191 | - | s.is_last_metablock = 0 | |||
| 192 | - | } | |||
| 193 | - | s.meta_block_remaining_len = 0 | |||
| 194 | - | s.is_uncompressed = 0 | |||
| 195 | - | s.is_metadata = 0 | |||
| 196 | - | if s.is_last_metablock == 0 { | |||
| 197 | - | s.substate_metablock_header = stateMetablockHeaderNibbles | |||
| 198 | - | break | |||
| 199 | - | } | |||
| 200 | - | ||||
| 201 | - | s.substate_metablock_header = stateMetablockHeaderEmpty | |||
| 202 | - | fallthrough | |||
| 203 | - | ||||
| 204 | - | /* Fall through. */ | |||
| 205 | - | case stateMetablockHeaderEmpty: | |||
| 206 | - | if !safeReadBits(br, 1, &bits) { | |||
| 207 | - | return decoderNeedsMoreInput | |||
| 208 | - | } | |||
| 209 | - | ||||
| 210 | - | if bits != 0 { | |||
| 211 | - | s.substate_metablock_header = stateMetablockHeaderNone | |||
| 212 | - | return decoderSuccess | |||
| 213 | - | } | |||
| 214 | - | ||||
| 215 | - | s.substate_metablock_header = stateMetablockHeaderNibbles | |||
| 216 | - | fallthrough | |||
| 217 | - | ||||
| 218 | - | /* Fall through. */ | |||
| 219 | - | case stateMetablockHeaderNibbles: | |||
| 220 | - | if !safeReadBits(br, 2, &bits) { | |||
| 221 | - | return decoderNeedsMoreInput | |||
| 222 | - | } | |||
| 223 | - | ||||
| 224 | - | s.size_nibbles = uint(byte(bits + 4)) | |||
| 225 | - | s.loop_counter = 0 | |||
| 226 | - | if bits == 3 { | |||
| 227 | - | s.is_metadata = 1 | |||
| 228 | - | s.substate_metablock_header = stateMetablockHeaderReserved | |||
| 229 | - | break | |||
| 230 | - | } | |||
| 231 | - | ||||
| 232 | - | s.substate_metablock_header = stateMetablockHeaderSize | |||
| 233 | - | fallthrough | |||
| 234 | - | ||||
| 235 | - | /* Fall through. */ | |||
| 236 | - | case stateMetablockHeaderSize: | |||
| 237 | - | i = s.loop_counter | |||
| 238 | - | ||||
| 239 | - | for ; i < int(s.size_nibbles); i++ { | |||
| 240 | - | if !safeReadBits(br, 4, &bits) { | |||
| 241 | - | s.loop_counter = i | |||
| 242 | - | return decoderNeedsMoreInput | |||
| 243 | - | } | |||
| 244 | - | ||||
| 245 | - | if uint(i+1) == s.size_nibbles && s.size_nibbles > 4 && bits == 0 { | |||
| 246 | - | return decoderErrorFormatExuberantNibble | |||
| 247 | - | } | |||
| 248 | - | ||||
| 249 | - | s.meta_block_remaining_len |= int(bits << uint(i*4)) | |||
| 250 | - | } | |||
| 251 | - | ||||
| 252 | - | s.substate_metablock_header = stateMetablockHeaderUncompressed | |||
| 253 | - | fallthrough | |||
| 254 | - | ||||
| 255 | - | /* Fall through. */ | |||
| 256 | - | case stateMetablockHeaderUncompressed: | |||
| 257 | - | if s.is_last_metablock == 0 { | |||
| 258 | - | if !safeReadBits(br, 1, &bits) { | |||
| 259 | - | return decoderNeedsMoreInput | |||
| 260 | - | } | |||
| 261 | - | ||||
| 262 | - | if bits != 0 { | |||
| 263 | - | s.is_uncompressed = 1 | |||
| 264 | - | } else { | |||
| 265 | - | s.is_uncompressed = 0 | |||
| 266 | - | } | |||
| 267 | - | } | |||
| 268 | - | ||||
| 269 | - | s.meta_block_remaining_len++ | |||
| 270 | - | s.substate_metablock_header = stateMetablockHeaderNone | |||
| 271 | - | return decoderSuccess | |||
| 272 | - | ||||
| 273 | - | case stateMetablockHeaderReserved: | |||
| 274 | - | if !safeReadBits(br, 1, &bits) { | |||
| 275 | - | return decoderNeedsMoreInput | |||
| 276 | - | } | |||
| 277 | - | ||||
| 278 | - | if bits != 0 { | |||
| 279 | - | return decoderErrorFormatReserved | |||
| 280 | - | } | |||
| 281 | - | ||||
| 282 | - | s.substate_metablock_header = stateMetablockHeaderBytes | |||
| 283 | - | fallthrough | |||
| 284 | - | ||||
| 285 | - | /* Fall through. */ | |||
| 286 | - | case stateMetablockHeaderBytes: | |||
| 287 | - | if !safeReadBits(br, 2, &bits) { | |||
| 288 | - | return decoderNeedsMoreInput | |||
| 289 | - | } | |||
| 290 | - | ||||
| 291 | - | if bits == 0 { | |||
| 292 | - | s.substate_metablock_header = stateMetablockHeaderNone | |||
| 293 | - | return decoderSuccess | |||
| 294 | - | } | |||
| 295 | - | ||||
| 296 | - | s.size_nibbles = uint(byte(bits)) | |||
| 297 | - | s.substate_metablock_header = stateMetablockHeaderMetadata | |||
| 298 | - | fallthrough | |||
| 299 | - | ||||
| 300 | - | /* Fall through. */ | |||
| 301 | - | case stateMetablockHeaderMetadata: | |||
| 302 | - | i = s.loop_counter | |||
| 303 | - | ||||
| 304 | - | for ; i < int(s.size_nibbles); i++ { | |||
| 305 | - | if !safeReadBits(br, 8, &bits) { | |||
| 306 | - | s.loop_counter = i | |||
| 307 | - | return decoderNeedsMoreInput | |||
| 308 | - | } | |||
| 309 | - | ||||
| 310 | - | if uint(i+1) == s.size_nibbles && s.size_nibbles > 1 && bits == 0 { | |||
| 311 | - | return decoderErrorFormatExuberantMetaNibble | |||
| 312 | - | } | |||
| 313 | - | ||||
| 314 | - | s.meta_block_remaining_len |= int(bits << uint(i*8)) | |||
| 315 | - | } | |||
| 316 | - | ||||
| 317 | - | s.meta_block_remaining_len++ | |||
| 318 | - | s.substate_metablock_header = stateMetablockHeaderNone | |||
| 319 | - | return decoderSuccess | |||
| 320 | - | ||||
| 321 | - | default: | |||
| 322 | - | return decoderErrorUnreachable | |||
| 323 | - | } | |||
| 324 | - | } | |||
| 325 | - | } | |||
| 326 | - | ||||
| 327 | - | /* Decodes the Huffman code. | |||
| 328 | - | This method doesn't read data from the bit reader, BUT drops the amount of | |||
| 329 | - | bits that correspond to the decoded symbol. | |||
| 330 | - | bits MUST contain at least 15 (BROTLI_HUFFMAN_MAX_CODE_LENGTH) valid bits. */ | |||
| 331 | - | func decodeSymbol(bits uint32, table []huffmanCode, br *bitReader) uint32 { | |||
| 332 | - | table = table[bits&huffmanTableMask:] | |||
| 333 | - | if table[0].bits > huffmanTableBits { | |||
| 334 | - | var nbits uint32 = uint32(table[0].bits) - huffmanTableBits | |||
| 335 | - | dropBits(br, huffmanTableBits) | |||
| 336 | - | table = table[uint32(table[0].value)+((bits>>huffmanTableBits)&bitMask(nbits)):] | |||
| 337 | - | } | |||
| 338 | - | ||||
| 339 | - | dropBits(br, uint32(table[0].bits)) | |||
| 340 | - | return uint32(table[0].value) | |||
| 341 | - | } | |||
| 342 | - | ||||
| 343 | - | /* Reads and decodes the next Huffman code from bit-stream. | |||
| 344 | - | This method peeks 16 bits of input and drops 0 - 15 of them. */ | |||
| 345 | - | func readSymbol(table []huffmanCode, br *bitReader) uint32 { | |||
| 346 | - | return decodeSymbol(get16BitsUnmasked(br), table, br) | |||
| 347 | - | } | |||
| 348 | - | ||||
| 349 | - | /* Same as DecodeSymbol, but it is known that there is less than 15 bits of | |||
| 350 | - | input are currently available. */ | |||
| 351 | - | func safeDecodeSymbol(table []huffmanCode, br *bitReader, result *uint32) bool { | |||
| 352 | - | var val uint32 | |||
| 353 | - | var available_bits uint32 = getAvailableBits(br) | |||
| 354 | - | if available_bits == 0 { | |||
| 355 | - | if table[0].bits == 0 { | |||
| 356 | - | *result = uint32(table[0].value) | |||
| 357 | - | return true | |||
| 358 | - | } | |||
| 359 | - | ||||
| 360 | - | return false /* No valid bits at all. */ | |||
| 361 | - | } | |||
| 362 | - | ||||
| 363 | - | val = uint32(getBitsUnmasked(br)) | |||
| 364 | - | table = table[val&huffmanTableMask:] | |||
| 365 | - | if table[0].bits <= huffmanTableBits { | |||
| 366 | - | if uint32(table[0].bits) <= available_bits { | |||
| 367 | - | dropBits(br, uint32(table[0].bits)) | |||
| 368 | - | *result = uint32(table[0].value) | |||
| 369 | - | return true | |||
| 370 | - | } else { | |||
| 371 | - | return false /* Not enough bits for the first level. */ | |||
| 372 | - | } | |||
| 373 | - | } | |||
| 374 | - | ||||
| 375 | - | if available_bits <= huffmanTableBits { | |||
| 376 | - | return false /* Not enough bits to move to the second level. */ | |||
| 377 | - | } | |||
| 378 | - | ||||
| 379 | - | /* Speculatively drop HUFFMAN_TABLE_BITS. */ | |||
| 380 | - | val = (val & bitMask(uint32(table[0].bits))) >> huffmanTableBits | |||
| 381 | - | ||||
| 382 | - | available_bits -= huffmanTableBits | |||
| 383 | - | table = table[uint32(table[0].value)+val:] | |||
| 384 | - | if available_bits < uint32(table[0].bits) { | |||
| 385 | - | return false /* Not enough bits for the second level. */ | |||
| 386 | - | } | |||
| 387 | - | ||||
| 388 | - | dropBits(br, huffmanTableBits+uint32(table[0].bits)) | |||
| 389 | - | *result = uint32(table[0].value) | |||
| 390 | - | return true | |||
| 391 | - | } | |||
| 392 | - | ||||
| 393 | - | func safeReadSymbol(table []huffmanCode, br *bitReader, result *uint32) bool { | |||
| 394 | - | var val uint32 | |||
| 395 | - | if safeGetBits(br, 15, &val) { | |||
| 396 | - | *result = decodeSymbol(val, table, br) | |||
| 397 | - | return true | |||
| 398 | - | } | |||
| 399 | - | ||||
| 400 | - | return safeDecodeSymbol(table, br, result) | |||
| 401 | - | } | |||
| 402 | - | ||||
| 403 | - | /* Makes a look-up in first level Huffman table. Peeks 8 bits. */ | |||
| 404 | - | func preloadSymbol(safe int, table []huffmanCode, br *bitReader, bits *uint32, value *uint32) { | |||
| 405 | - | if safe != 0 { | |||
| 406 | - | return | |||
| 407 | - | } | |||
| 408 | - | ||||
| 409 | - | table = table[getBits(br, huffmanTableBits):] | |||
| 410 | - | *bits = uint32(table[0].bits) | |||
| 411 | - | *value = uint32(table[0].value) | |||
| 412 | - | } | |||
| 413 | - | ||||
| 414 | - | /* Decodes the next Huffman code using data prepared by PreloadSymbol. | |||
| 415 | - | Reads 0 - 15 bits. Also peeks 8 following bits. */ | |||
| 416 | - | func readPreloadedSymbol(table []huffmanCode, br *bitReader, bits *uint32, value *uint32) uint32 { | |||
| 417 | - | var result uint32 = *value | |||
| 418 | - | var ext []huffmanCode | |||
| 419 | - | if *bits > huffmanTableBits { | |||
| 420 | - | var val uint32 = get16BitsUnmasked(br) | |||
| 421 | - | ext = table[val&huffmanTableMask:][*value:] | |||
| 422 | - | var mask uint32 = bitMask((*bits - huffmanTableBits)) | |||
| 423 | - | dropBits(br, huffmanTableBits) | |||
| 424 | - | ext = ext[(val>>huffmanTableBits)&mask:] | |||
| 425 | - | dropBits(br, uint32(ext[0].bits)) | |||
| 426 | - | result = uint32(ext[0].value) | |||
| 427 | - | } else { | |||
| 428 | - | dropBits(br, *bits) | |||
| 429 | - | } | |||
| 430 | - | ||||
| 431 | - | preloadSymbol(0, table, br, bits, value) | |||
| 432 | - | return result | |||
| 433 | - | } | |||
| 434 | - | ||||
| 435 | - | func log2Floor(x uint32) uint32 { | |||
| 436 | - | var result uint32 = 0 | |||
| 437 | - | for x != 0 { | |||
| 438 | - | x >>= 1 | |||
| 439 | - | result++ | |||
| 440 | - | } | |||
| 441 | - | ||||
| 442 | - | return result | |||
| 443 | - | } | |||
| 444 | - | ||||
| 445 | - | /* Reads (s->symbol + 1) symbols. | |||
| 446 | - | Totally 1..4 symbols are read, 1..11 bits each. | |||
| 447 | - | The list of symbols MUST NOT contain duplicates. */ | |||
| 448 | - | func readSimpleHuffmanSymbols(alphabet_size uint32, max_symbol uint32, s *Reader) int { | |||
| 449 | - | var br *bitReader = &s.br | |||
| 450 | - | var max_bits uint32 = log2Floor(alphabet_size - 1) | |||
| 451 | - | var i uint32 = s.sub_loop_counter | |||
| 452 | - | /* max_bits == 1..11; symbol == 0..3; 1..44 bits will be read. */ | |||
| 453 | - | ||||
| 454 | - | var num_symbols uint32 = s.symbol | |||
| 455 | - | for i <= num_symbols { | |||
| 456 | - | var v uint32 | |||
| 457 | - | if !safeReadBits(br, max_bits, &v) { | |||
| 458 | - | s.sub_loop_counter = i | |||
| 459 | - | s.substate_huffman = stateHuffmanSimpleRead | |||
| 460 | - | return decoderNeedsMoreInput | |||
| 461 | - | } | |||
| 462 | - | ||||
| 463 | - | if v >= max_symbol { | |||
| 464 | - | return decoderErrorFormatSimpleHuffmanAlphabet | |||
| 465 | - | } | |||
| 466 | - | ||||
| 467 | - | s.symbols_lists_array[i] = uint16(v) | |||
| 468 | - | i++ | |||
| 469 | - | } | |||
| 470 | - | ||||
| 471 | - | for i = 0; i < num_symbols; i++ { | |||
| 472 | - | var k uint32 = i + 1 | |||
| 473 | - | for ; k <= num_symbols; k++ { | |||
| 474 | - | if s.symbols_lists_array[i] == s.symbols_lists_array[k] { | |||
| 475 | - | return decoderErrorFormatSimpleHuffmanSame | |||
| 476 | - | } | |||
| 477 | - | } | |||
| 478 | - | } | |||
| 479 | - | ||||
| 480 | - | return decoderSuccess | |||
| 481 | - | } | |||
| 482 | - | ||||
| 483 | - | /* Process single decoded symbol code length: | |||
| 484 | - | A) reset the repeat variable | |||
| 485 | - | B) remember code length (if it is not 0) | |||
| 486 | - | C) extend corresponding index-chain | |||
| 487 | - | D) reduce the Huffman space | |||
| 488 | - | E) update the histogram */ | |||
| 489 | - | func processSingleCodeLength(code_len uint32, symbol *uint32, repeat *uint32, space *uint32, prev_code_len *uint32, symbol_lists symbolList, code_length_histo []uint16, next_symbol []int) { | |||
| 490 | - | *repeat = 0 | |||
| 491 | - | if code_len != 0 { /* code_len == 1..15 */ | |||
| 492 | - | symbolListPut(symbol_lists, next_symbol[code_len], uint16(*symbol)) | |||
| 493 | - | next_symbol[code_len] = int(*symbol) | |||
| 494 | - | *prev_code_len = code_len | |||
| 495 | - | *space -= 32768 >> code_len | |||
| 496 | - | code_length_histo[code_len]++ | |||
| 497 | - | } | |||
| 498 | - | ||||
| 499 | - | (*symbol)++ | |||
| 500 | - | } | |||
| 501 | - | ||||
| 502 | - | /* Process repeated symbol code length. | |||
| 503 | - | A) Check if it is the extension of previous repeat sequence; if the decoded | |||
| 504 | - | value is not BROTLI_REPEAT_PREVIOUS_CODE_LENGTH, then it is a new | |||
| 505 | - | symbol-skip | |||
| 506 | - | B) Update repeat variable | |||
| 507 | - | C) Check if operation is feasible (fits alphabet) | |||
| 508 | - | D) For each symbol do the same operations as in ProcessSingleCodeLength | |||
| 509 | - | ||||
| 510 | - | PRECONDITION: code_len == BROTLI_REPEAT_PREVIOUS_CODE_LENGTH or | |||
| 511 | - | code_len == BROTLI_REPEAT_ZERO_CODE_LENGTH */ | |||
| 512 | - | func processRepeatedCodeLength(code_len uint32, repeat_delta uint32, alphabet_size uint32, symbol *uint32, repeat *uint32, space *uint32, prev_code_len *uint32, repeat_code_len *uint32, symbol_lists symbolList, code_length_histo []uint16, next_symbol []int) { | |||
| 513 | - | var old_repeat uint32 /* for BROTLI_REPEAT_ZERO_CODE_LENGTH */ /* for BROTLI_REPEAT_ZERO_CODE_LENGTH */ | |||
| 514 | - | var extra_bits uint32 = 3 | |||
| 515 | - | var new_len uint32 = 0 | |||
| 516 | - | if code_len == repeatPreviousCodeLength { | |||
| 517 | - | new_len = *prev_code_len | |||
| 518 | - | extra_bits = 2 | |||
| 519 | - | } | |||
| 520 | - | ||||
| 521 | - | if *repeat_code_len != new_len { | |||
| 522 | - | *repeat = 0 | |||
| 523 | - | *repeat_code_len = new_len | |||
| 524 | - | } | |||
| 525 | - | ||||
| 526 | - | old_repeat = *repeat | |||
| 527 | - | if *repeat > 0 { | |||
| 528 | - | *repeat -= 2 | |||
| 529 | - | *repeat <<= extra_bits | |||
| 530 | - | } | |||
| 531 | - | ||||
| 532 | - | *repeat += repeat_delta + 3 | |||
| 533 | - | repeat_delta = *repeat - old_repeat | |||
| 534 | - | if *symbol+repeat_delta > alphabet_size { | |||
| 535 | - | *symbol = alphabet_size | |||
| 536 | - | *space = 0xFFFFF | |||
| 537 | - | return | |||
| 538 | - | } | |||
| 539 | - | ||||
| 540 | - | if *repeat_code_len != 0 { | |||
| 541 | - | var last uint = uint(*symbol + repeat_delta) | |||
| 542 | - | var next int = next_symbol[*repeat_code_len] | |||
| 543 | - | for { | |||
| 544 | - | symbolListPut(symbol_lists, next, uint16(*symbol)) | |||
| 545 | - | next = int(*symbol) | |||
| 546 | - | (*symbol)++ | |||
| 547 | - | if (*symbol) == uint32(last) { | |||
| 548 | - | break | |||
| 549 | - | } | |||
| 550 | - | } | |||
| 551 | - | ||||
| 552 | - | next_symbol[*repeat_code_len] = next | |||
| 553 | - | *space -= repeat_delta << (15 - *repeat_code_len) | |||
| 554 | - | code_length_histo[*repeat_code_len] = uint16(uint32(code_length_histo[*repeat_code_len]) + repeat_delta) | |||
| 555 | - | } else { | |||
| 556 | - | *symbol += repeat_delta | |||
| 557 | - | } | |||
| 558 | - | } | |||
| 559 | - | ||||
| 560 | - | /* Reads and decodes symbol codelengths. */ | |||
| 561 | - | func readSymbolCodeLengths(alphabet_size uint32, s *Reader) int { | |||
| 562 | - | var br *bitReader = &s.br | |||
| 563 | - | var symbol uint32 = s.symbol | |||
| 564 | - | var repeat uint32 = s.repeat | |||
| 565 | - | var space uint32 = s.space | |||
| 566 | - | var prev_code_len uint32 = s.prev_code_len | |||
| 567 | - | var repeat_code_len uint32 = s.repeat_code_len | |||
| 568 | - | var symbol_lists symbolList = s.symbol_lists | |||
| 569 | - | var code_length_histo []uint16 = s.code_length_histo[:] | |||
| 570 | - | var next_symbol []int = s.next_symbol[:] | |||
| 571 | - | if !warmupBitReader(br) { | |||
| 572 | - | return decoderNeedsMoreInput | |||
| 573 | - | } | |||
| 574 | - | var p []huffmanCode | |||
| 575 | - | for symbol < alphabet_size && space > 0 { | |||
| 576 | - | p = s.table[:] | |||
| 577 | - | var code_len uint32 | |||
| 578 | - | if !checkInputAmount(br, shortFillBitWindowRead) { | |||
| 579 | - | s.symbol = symbol | |||
| 580 | - | s.repeat = repeat | |||
| 581 | - | s.prev_code_len = prev_code_len | |||
| 582 | - | s.repeat_code_len = repeat_code_len | |||
| 583 | - | s.space = space | |||
| 584 | - | return decoderNeedsMoreInput | |||
| 585 | - | } | |||
| 586 | - | ||||
| 587 | - | fillBitWindow16(br) | |||
| 588 | - | p = p[getBitsUnmasked(br)&uint64(bitMask(huffmanMaxCodeLengthCodeLength)):] | |||
| 589 | - | dropBits(br, uint32(p[0].bits)) /* Use 1..5 bits. */ | |||
| 590 | - | code_len = uint32(p[0].value) /* code_len == 0..17 */ | |||
| 591 | - | if code_len < repeatPreviousCodeLength { | |||
| 592 | - | processSingleCodeLength(code_len, &symbol, &repeat, &space, &prev_code_len, symbol_lists, code_length_histo, next_symbol) /* code_len == 16..17, extra_bits == 2..3 */ | |||
| 593 | - | } else { | |||
| 594 | - | var extra_bits uint32 | |||
| 595 | - | if code_len == repeatPreviousCodeLength { | |||
| 596 | - | extra_bits = 2 | |||
| 597 | - | } else { | |||
| 598 | - | extra_bits = 3 | |||
| 599 | - | } | |||
| 600 | - | var repeat_delta uint32 = uint32(getBitsUnmasked(br)) & bitMask(extra_bits) | |||
| 601 | - | dropBits(br, extra_bits) | |||
| 602 | - | processRepeatedCodeLength(code_len, repeat_delta, alphabet_size, &symbol, &repeat, &space, &prev_code_len, &repeat_code_len, symbol_lists, code_length_histo, next_symbol) | |||
| 603 | - | } | |||
| 604 | - | } | |||
| 605 | - | ||||
| 606 | - | s.space = space | |||
| 607 | - | return decoderSuccess | |||
| 608 | - | } | |||
| 609 | - | ||||
| 610 | - | func safeReadSymbolCodeLengths(alphabet_size uint32, s *Reader) int { | |||
| 611 | - | var br *bitReader = &s.br | |||
| 612 | - | var get_byte bool = false | |||
| 613 | - | var p []huffmanCode | |||
| 614 | - | for s.symbol < alphabet_size && s.space > 0 { | |||
| 615 | - | p = s.table[:] | |||
| 616 | - | var code_len uint32 | |||
| 617 | - | var available_bits uint32 | |||
| 618 | - | var bits uint32 = 0 | |||
| 619 | - | if get_byte && !pullByte(br) { | |||
| 620 | - | return decoderNeedsMoreInput | |||
| 621 | - | } | |||
| 622 | - | get_byte = false | |||
| 623 | - | available_bits = getAvailableBits(br) | |||
| 624 | - | if available_bits != 0 { | |||
| 625 | - | bits = uint32(getBitsUnmasked(br)) | |||
| 626 | - | } | |||
| 627 | - | ||||
| 628 | - | p = p[bits&bitMask(huffmanMaxCodeLengthCodeLength):] | |||
| 629 | - | if uint32(p[0].bits) > available_bits { | |||
| 630 | - | get_byte = true | |||
| 631 | - | continue | |||
| 632 | - | } | |||
| 633 | - | ||||
| 634 | - | code_len = uint32(p[0].value) /* code_len == 0..17 */ | |||
| 635 | - | if code_len < repeatPreviousCodeLength { | |||
| 636 | - | dropBits(br, uint32(p[0].bits)) | |||
| 637 | - | processSingleCodeLength(code_len, &s.symbol, &s.repeat, &s.space, &s.prev_code_len, s.symbol_lists, s.code_length_histo[:], s.next_symbol[:]) /* code_len == 16..17, extra_bits == 2..3 */ | |||
| 638 | - | } else { | |||
| 639 | - | var extra_bits uint32 = code_len - 14 | |||
| 640 | - | var repeat_delta uint32 = (bits >> p[0].bits) & bitMask(extra_bits) | |||
| 641 | - | if available_bits < uint32(p[0].bits)+extra_bits { | |||
| 642 | - | get_byte = true | |||
| 643 | - | continue | |||
| 644 | - | } | |||
| 645 | - | ||||
| 646 | - | dropBits(br, uint32(p[0].bits)+extra_bits) | |||
| 647 | - | processRepeatedCodeLength(code_len, repeat_delta, alphabet_size, &s.symbol, &s.repeat, &s.space, &s.prev_code_len, &s.repeat_code_len, s.symbol_lists, s.code_length_histo[:], s.next_symbol[:]) | |||
| 648 | - | } | |||
| 649 | - | } | |||
| 650 | - | ||||
| 651 | - | return decoderSuccess | |||
| 652 | - | } | |||
| 653 | - | ||||
| 654 | - | /* Reads and decodes 15..18 codes using static prefix code. | |||
| 655 | - | Each code is 2..4 bits long. In total 30..72 bits are used. */ | |||
| 656 | - | func readCodeLengthCodeLengths(s *Reader) int { | |||
| 657 | - | var br *bitReader = &s.br | |||
| 658 | - | var num_codes uint32 = s.repeat | |||
| 659 | - | var space uint32 = s.space | |||
| 660 | - | var i uint32 = s.sub_loop_counter | |||
| 661 | - | for ; i < codeLengthCodes; i++ { | |||
| 662 | - | var code_len_idx byte = kCodeLengthCodeOrder[i] | |||
| 663 | - | var ix uint32 | |||
| 664 | - | var v uint32 | |||
| 665 | - | if !safeGetBits(br, 4, &ix) { | |||
| 666 | - | var available_bits uint32 = getAvailableBits(br) | |||
| 667 | - | if available_bits != 0 { | |||
| 668 | - | ix = uint32(getBitsUnmasked(br) & 0xF) | |||
| 669 | - | } else { | |||
| 670 | - | ix = 0 | |||
| 671 | - | } | |||
| 672 | - | ||||
| 673 | - | if uint32(kCodeLengthPrefixLength[ix]) > available_bits { | |||
| 674 | - | s.sub_loop_counter = i | |||
| 675 | - | s.repeat = num_codes | |||
| 676 | - | s.space = space | |||
| 677 | - | s.substate_huffman = stateHuffmanComplex | |||
| 678 | - | return decoderNeedsMoreInput | |||
| 679 | - | } | |||
| 680 | - | } | |||
| 681 | - | ||||
| 682 | - | v = uint32(kCodeLengthPrefixValue[ix]) | |||
| 683 | - | dropBits(br, uint32(kCodeLengthPrefixLength[ix])) | |||
| 684 | - | s.code_length_code_lengths[code_len_idx] = byte(v) | |||
| 685 | - | if v != 0 { | |||
| 686 | - | space = space - (32 >> v) | |||
| 687 | - | num_codes++ | |||
| 688 | - | s.code_length_histo[v]++ | |||
| 689 | - | if space-1 >= 32 { | |||
| 690 | - | /* space is 0 or wrapped around. */ | |||
| 691 | - | break | |||
| 692 | - | } | |||
| 693 | - | } | |||
| 694 | - | } | |||
| 695 | - | ||||
| 696 | - | if num_codes != 1 && space != 0 { | |||
| 697 | - | return decoderErrorFormatClSpace | |||
| 698 | - | } | |||
| 699 | - | ||||
| 700 | - | return decoderSuccess | |||
| 701 | - | } | |||
| 702 | - | ||||
| 703 | - | /* Decodes the Huffman tables. | |||
| 704 | - | There are 2 scenarios: | |||
| 705 | - | A) Huffman code contains only few symbols (1..4). Those symbols are read | |||
| 706 | - | directly; their code lengths are defined by the number of symbols. | |||
| 707 | - | For this scenario 4 - 49 bits will be read. | |||
| 708 | - | ||||
| 709 | - | B) 2-phase decoding: | |||
| 710 | - | B.1) Small Huffman table is decoded; it is specified with code lengths | |||
| 711 | - | encoded with predefined entropy code. 32 - 74 bits are used. | |||
| 712 | - | B.2) Decoded table is used to decode code lengths of symbols in resulting | |||
| 713 | - | Huffman table. In worst case 3520 bits are read. */ | |||
| 714 | - | func readHuffmanCode(alphabet_size uint32, max_symbol uint32, table []huffmanCode, opt_table_size *uint32, s *Reader) int { | |||
| 715 | - | var br *bitReader = &s.br | |||
| 716 | - | ||||
| 717 | - | /* Unnecessary masking, but might be good for safety. */ | |||
| 718 | - | alphabet_size &= 0x7FF | |||
| 719 | - | ||||
| 720 | - | /* State machine. */ | |||
| 721 | - | for { | |||
| 722 | - | switch s.substate_huffman { | |||
| 723 | - | case stateHuffmanNone: | |||
| 724 | - | if !safeReadBits(br, 2, &s.sub_loop_counter) { | |||
| 725 | - | return decoderNeedsMoreInput | |||
| 726 | - | } | |||
| 727 | - | ||||
| 728 | - | /* The value is used as follows: | |||
| 729 | - | 1 for simple code; | |||
| 730 | - | 0 for no skipping, 2 skips 2 code lengths, 3 skips 3 code lengths */ | |||
| 731 | - | if s.sub_loop_counter != 1 { | |||
| 732 | - | s.space = 32 | |||
| 733 | - | s.repeat = 0 /* num_codes */ | |||
| 734 | - | var i int | |||
| 735 | - | for i = 0; i <= huffmanMaxCodeLengthCodeLength; i++ { | |||
| 736 | - | s.code_length_histo[i] = 0 | |||
| 737 | - | } | |||
| 738 | - | ||||
| 739 | - | for i = 0; i < codeLengthCodes; i++ { | |||
| 740 | - | s.code_length_code_lengths[i] = 0 | |||
| 741 | - | } | |||
| 742 | - | ||||
| 743 | - | s.substate_huffman = stateHuffmanComplex | |||
| 744 | - | continue | |||
| 745 | - | } | |||
| 746 | - | fallthrough | |||
| 747 | - | ||||
| 748 | - | /* Read symbols, codes & code lengths directly. */ | |||
| 749 | - | case stateHuffmanSimpleSize: | |||
| 750 | - | if !safeReadBits(br, 2, &s.symbol) { /* num_symbols */ | |||
| 751 | - | s.substate_huffman = stateHuffmanSimpleSize | |||
| 752 | - | return decoderNeedsMoreInput | |||
| 753 | - | } | |||
| 754 | - | ||||
| 755 | - | s.sub_loop_counter = 0 | |||
| 756 | - | fallthrough | |||
| 757 | - | ||||
| 758 | - | case stateHuffmanSimpleRead: | |||
| 759 | - | { | |||
| 760 | - | var result int = readSimpleHuffmanSymbols(alphabet_size, max_symbol, s) | |||
| 761 | - | if result != decoderSuccess { | |||
| 762 | - | return result | |||
| 763 | - | } | |||
| 764 | - | } | |||
| 765 | - | fallthrough | |||
| 766 | - | ||||
| 767 | - | case stateHuffmanSimpleBuild: | |||
| 768 | - | var table_size uint32 | |||
| 769 | - | if s.symbol == 3 { | |||
| 770 | - | var bits uint32 | |||
| 771 | - | if !safeReadBits(br, 1, &bits) { | |||
| 772 | - | s.substate_huffman = stateHuffmanSimpleBuild | |||
| 773 | - | return decoderNeedsMoreInput | |||
| 774 | - | } | |||
| 775 | - | ||||
| 776 | - | s.symbol += bits | |||
| 777 | - | } | |||
| 778 | - | ||||
| 779 | - | table_size = buildSimpleHuffmanTable(table, huffmanTableBits, s.symbols_lists_array[:], s.symbol) | |||
| 780 | - | if opt_table_size != nil { | |||
| 781 | - | *opt_table_size = table_size | |||
| 782 | - | } | |||
| 783 | - | ||||
| 784 | - | s.substate_huffman = stateHuffmanNone | |||
| 785 | - | return decoderSuccess | |||
| 786 | - | ||||
| 787 | - | /* Decode Huffman-coded code lengths. */ | |||
| 788 | - | case stateHuffmanComplex: | |||
| 789 | - | { | |||
| 790 | - | var i uint32 | |||
| 791 | - | var result int = readCodeLengthCodeLengths(s) | |||
| 792 | - | if result != decoderSuccess { | |||
| 793 | - | return result | |||
| 794 | - | } | |||
| 795 | - | ||||
| 796 | - | buildCodeLengthsHuffmanTable(s.table[:], s.code_length_code_lengths[:], s.code_length_histo[:]) | |||
| 797 | - | for i = 0; i < 16; i++ { | |||
| 798 | - | s.code_length_histo[i] = 0 | |||
| 799 | - | } | |||
| 800 | - | ||||
| 801 | - | for i = 0; i <= huffmanMaxCodeLength; i++ { | |||
| 802 | - | s.next_symbol[i] = int(i) - (huffmanMaxCodeLength + 1) | |||
| 803 | - | symbolListPut(s.symbol_lists, s.next_symbol[i], 0xFFFF) | |||
| 804 | - | } | |||
| 805 | - | ||||
| 806 | - | s.symbol = 0 | |||
| 807 | - | s.prev_code_len = initialRepeatedCodeLength | |||
| 808 | - | s.repeat = 0 | |||
| 809 | - | s.repeat_code_len = 0 | |||
| 810 | - | s.space = 32768 | |||
| 811 | - | s.substate_huffman = stateHuffmanLengthSymbols | |||
| 812 | - | } | |||
| 813 | - | fallthrough | |||
| 814 | - | ||||
| 815 | - | case stateHuffmanLengthSymbols: | |||
| 816 | - | var table_size uint32 | |||
| 817 | - | var result int = readSymbolCodeLengths(max_symbol, s) | |||
| 818 | - | if result == decoderNeedsMoreInput { | |||
| 819 | - | result = safeReadSymbolCodeLengths(max_symbol, s) | |||
| 820 | - | } | |||
| 821 | - | ||||
| 822 | - | if result != decoderSuccess { | |||
| 823 | - | return result | |||
| 824 | - | } | |||
| 825 | - | ||||
| 826 | - | if s.space != 0 { | |||
| 827 | - | return decoderErrorFormatHuffmanSpace | |||
| 828 | - | } | |||
| 829 | - | ||||
| 830 | - | table_size = buildHuffmanTable(table, huffmanTableBits, s.symbol_lists, s.code_length_histo[:]) | |||
| 831 | - | if opt_table_size != nil { | |||
| 832 | - | *opt_table_size = table_size | |||
| 833 | - | } | |||
| 834 | - | ||||
| 835 | - | s.substate_huffman = stateHuffmanNone | |||
| 836 | - | return decoderSuccess | |||
| 837 | - | ||||
| 838 | - | default: | |||
| 839 | - | return decoderErrorUnreachable | |||
| 840 | - | } | |||
| 841 | - | } | |||
| 842 | - | } | |||
| 843 | - | ||||
| 844 | - | /* Decodes a block length by reading 3..39 bits. */ | |||
| 845 | - | func readBlockLength(table []huffmanCode, br *bitReader) uint32 { | |||
| 846 | - | var code uint32 | |||
| 847 | - | var nbits uint32 | |||
| 848 | - | code = readSymbol(table, br) | |||
| 849 | - | nbits = kBlockLengthPrefixCode[code].nbits /* nbits == 2..24 */ | |||
| 850 | - | return kBlockLengthPrefixCode[code].offset + readBits(br, nbits) | |||
| 851 | - | } | |||
| 852 | - | ||||
| 853 | - | /* WARNING: if state is not BROTLI_STATE_READ_BLOCK_LENGTH_NONE, then | |||
| 854 | - | reading can't be continued with ReadBlockLength. */ | |||
| 855 | - | func safeReadBlockLength(s *Reader, result *uint32, table []huffmanCode, br *bitReader) bool { | |||
| 856 | - | var index uint32 | |||
| 857 | - | if s.substate_read_block_length == stateReadBlockLengthNone { | |||
| 858 | - | if !safeReadSymbol(table, br, &index) { | |||
| 859 | - | return false | |||
| 860 | - | } | |||
| 861 | - | } else { | |||
| 862 | - | index = s.block_length_index | |||
| 863 | - | } | |||
| 864 | - | { | |||
| 865 | - | var bits uint32 /* nbits == 2..24 */ | |||
| 866 | - | var nbits uint32 = kBlockLengthPrefixCode[index].nbits | |||
| 867 | - | if !safeReadBits(br, nbits, &bits) { | |||
| 868 | - | s.block_length_index = index | |||
| 869 | - | s.substate_read_block_length = stateReadBlockLengthSuffix | |||
| 870 | - | return false | |||
| 871 | - | } | |||
| 872 | - | ||||
| 873 | - | *result = kBlockLengthPrefixCode[index].offset + bits | |||
| 874 | - | s.substate_read_block_length = stateReadBlockLengthNone | |||
| 875 | - | return true | |||
| 876 | - | } | |||
| 877 | - | } | |||
| 878 | - | ||||
| 879 | - | /* Transform: | |||
| 880 | - | 1) initialize list L with values 0, 1,... 255 | |||
| 881 | - | 2) For each input element X: | |||
| 882 | - | 2.1) let Y = L[X] | |||
| 883 | - | 2.2) remove X-th element from L | |||
| 884 | - | 2.3) prepend Y to L | |||
| 885 | - | 2.4) append Y to output | |||
| 886 | - | ||||
| 887 | - | In most cases max(Y) <= 7, so most of L remains intact. | |||
| 888 | - | To reduce the cost of initialization, we reuse L, remember the upper bound | |||
| 889 | - | of Y values, and reinitialize only first elements in L. | |||
| 890 | - | ||||
| 891 | - | Most of input values are 0 and 1. To reduce number of branches, we replace | |||
| 892 | - | inner for loop with do-while. */ | |||
| 893 | - | func inverseMoveToFrontTransform(v []byte, v_len uint32, state *Reader) { | |||
| 894 | - | var mtf [256]byte | |||
| 895 | - | var i int | |||
| 896 | - | for i = 1; i < 256; i++ { | |||
| 897 | - | mtf[i] = byte(i) | |||
| 898 | - | } | |||
| 899 | - | var mtf_1 byte | |||
| 900 | - | ||||
| 901 | - | /* Transform the input. */ | |||
| 902 | - | for i = 0; uint32(i) < v_len; i++ { | |||
| 903 | - | var index int = int(v[i]) | |||
| 904 | - | var value byte = mtf[index] | |||
| 905 | - | v[i] = value | |||
| 906 | - | mtf_1 = value | |||
| 907 | - | for index >= 1 { | |||
| 908 | - | index-- | |||
| 909 | - | mtf[index+1] = mtf[index] | |||
| 910 | - | } | |||
| 911 | - | ||||
| 912 | - | mtf[0] = mtf_1 | |||
| 913 | - | } | |||
| 914 | - | } | |||
| 915 | - | ||||
| 916 | - | /* Decodes a series of Huffman table using ReadHuffmanCode function. */ | |||
| 917 | - | func huffmanTreeGroupDecode(group *huffmanTreeGroup, s *Reader) int { | |||
| 918 | - | if s.substate_tree_group != stateTreeGroupLoop { | |||
| 919 | - | s.next = group.codes | |||
| 920 | - | s.htree_index = 0 | |||
| 921 | - | s.substate_tree_group = stateTreeGroupLoop | |||
| 922 | - | } | |||
| 923 | - | ||||
| 924 | - | for s.htree_index < int(group.num_htrees) { | |||
| 925 | - | var table_size uint32 | |||
| 926 | - | var result int = readHuffmanCode(uint32(group.alphabet_size), uint32(group.max_symbol), s.next, &table_size, s) | |||
| 927 | - | if result != decoderSuccess { | |||
| 928 | - | return result | |||
| 929 | - | } | |||
| 930 | - | group.htrees[s.htree_index] = s.next | |||
| 931 | - | s.next = s.next[table_size:] | |||
| 932 | - | s.htree_index++ | |||
| 933 | - | } | |||
| 934 | - | ||||
| 935 | - | s.substate_tree_group = stateTreeGroupNone | |||
| 936 | - | return decoderSuccess | |||
| 937 | - | } | |||
| 938 | - | ||||
| 939 | - | /* Decodes a context map. | |||
| 940 | - | Decoding is done in 4 phases: | |||
| 941 | - | 1) Read auxiliary information (6..16 bits) and allocate memory. | |||
| 942 | - | In case of trivial context map, decoding is finished at this phase. | |||
| 943 | - | 2) Decode Huffman table using ReadHuffmanCode function. | |||
| 944 | - | This table will be used for reading context map items. | |||
| 945 | - | 3) Read context map items; "0" values could be run-length encoded. | |||
| 946 | - | 4) Optionally, apply InverseMoveToFront transform to the resulting map. */ | |||
| 947 | - | func decodeContextMap(context_map_size uint32, num_htrees *uint32, context_map_arg *[]byte, s *Reader) int { | |||
| 948 | - | var br *bitReader = &s.br | |||
| 949 | - | var result int = decoderSuccess | |||
| 950 | - | ||||
| 951 | - | switch int(s.substate_context_map) { | |||
| 952 | - | case stateContextMapNone: | |||
| 953 | - | result = decodeVarLenUint8(s, br, num_htrees) | |||
| 954 | - | if result != decoderSuccess { | |||
| 955 | - | return result | |||
| 956 | - | } | |||
| 957 | - | ||||
| 958 | - | (*num_htrees)++ | |||
| 959 | - | s.context_index = 0 | |||
| 960 | - | *context_map_arg = make([]byte, uint(context_map_size)) | |||
| 961 | - | if *context_map_arg == nil { | |||
| 962 | - | return decoderErrorAllocContextMap | |||
| 963 | - | } | |||
| 964 | - | ||||
| 965 | - | if *num_htrees <= 1 { | |||
| 966 | - | for i := 0; i < int(context_map_size); i++ { | |||
| 967 | - | (*context_map_arg)[i] = 0 | |||
| 968 | - | } | |||
| 969 | - | return decoderSuccess | |||
| 970 | - | } | |||
| 971 | - | ||||
| 972 | - | s.substate_context_map = stateContextMapReadPrefix | |||
| 973 | - | fallthrough | |||
| 974 | - | /* Fall through. */ | |||
| 975 | - | case stateContextMapReadPrefix: | |||
| 976 | - | { | |||
| 977 | - | var bits uint32 | |||
| 978 | - | ||||
| 979 | - | /* In next stage ReadHuffmanCode uses at least 4 bits, so it is safe | |||
| 980 | - | to peek 4 bits ahead. */ | |||
| 981 | - | if !safeGetBits(br, 5, &bits) { | |||
| 982 | - | return decoderNeedsMoreInput | |||
| 983 | - | } | |||
| 984 | - | ||||
| 985 | - | if bits&1 != 0 { /* Use RLE for zeros. */ | |||
| 986 | - | s.max_run_length_prefix = (bits >> 1) + 1 | |||
| 987 | - | dropBits(br, 5) | |||
| 988 | - | } else { | |||
| 989 | - | s.max_run_length_prefix = 0 | |||
| 990 | - | dropBits(br, 1) | |||
| 991 | - | } | |||
| 992 | - | ||||
| 993 | - | s.substate_context_map = stateContextMapHuffman | |||
| 994 | - | } | |||
| 995 | - | fallthrough | |||
| 996 | - | ||||
| 997 | - | /* Fall through. */ | |||
| 998 | - | case stateContextMapHuffman: | |||
| 999 | - | { | |||
| 1000 | - | var alphabet_size uint32 = *num_htrees + s.max_run_length_prefix | |||
| 1001 | - | result = readHuffmanCode(alphabet_size, alphabet_size, s.context_map_table[:], nil, s) | |||
| 1002 | - | if result != decoderSuccess { | |||
| 1003 | - | return result | |||
| 1004 | - | } | |||
| 1005 | - | s.code = 0xFFFF | |||
| 1006 | - | s.substate_context_map = stateContextMapDecode | |||
| 1007 | - | } | |||
| 1008 | - | fallthrough | |||
| 1009 | - | ||||
| 1010 | - | /* Fall through. */ | |||
| 1011 | - | case stateContextMapDecode: | |||
| 1012 | - | { | |||
| 1013 | - | var context_index uint32 = s.context_index | |||
| 1014 | - | var max_run_length_prefix uint32 = s.max_run_length_prefix | |||
| 1015 | - | var context_map []byte = *context_map_arg | |||
| 1016 | - | var code uint32 = s.code | |||
| 1017 | - | var skip_preamble bool = (code != 0xFFFF) | |||
| 1018 | - | for context_index < context_map_size || skip_preamble { | |||
| 1019 | - | if !skip_preamble { | |||
| 1020 | - | if !safeReadSymbol(s.context_map_table[:], br, &code) { | |||
| 1021 | - | s.code = 0xFFFF | |||
| 1022 | - | s.context_index = context_index | |||
| 1023 | - | return decoderNeedsMoreInput | |||
| 1024 | - | } | |||
| 1025 | - | ||||
| 1026 | - | if code == 0 { | |||
| 1027 | - | context_map[context_index] = 0 | |||
| 1028 | - | context_index++ | |||
| 1029 | - | continue | |||
| 1030 | - | } | |||
| 1031 | - | ||||
| 1032 | - | if code > max_run_length_prefix { | |||
| 1033 | - | context_map[context_index] = byte(code - max_run_length_prefix) | |||
| 1034 | - | context_index++ | |||
| 1035 | - | continue | |||
| 1036 | - | } | |||
| 1037 | - | } else { | |||
| 1038 | - | skip_preamble = false | |||
| 1039 | - | } | |||
| 1040 | - | ||||
| 1041 | - | /* RLE sub-stage. */ | |||
| 1042 | - | { | |||
| 1043 | - | var reps uint32 | |||
| 1044 | - | if !safeReadBits(br, code, &reps) { | |||
| 1045 | - | s.code = code | |||
| 1046 | - | s.context_index = context_index | |||
| 1047 | - | return decoderNeedsMoreInput | |||
| 1048 | - | } | |||
| 1049 | - | ||||
| 1050 | - | reps += 1 << code | |||
| 1051 | - | if context_index+reps > context_map_size { | |||
| 1052 | - | return decoderErrorFormatContextMapRepeat | |||
| 1053 | - | } | |||
| 1054 | - | ||||
| 1055 | - | for { | |||
| 1056 | - | context_map[context_index] = 0 | |||
| 1057 | - | context_index++ | |||
| 1058 | - | reps-- | |||
| 1059 | - | if reps == 0 { | |||
| 1060 | - | break | |||
| 1061 | - | } | |||
| 1062 | - | } | |||
| 1063 | - | } | |||
| 1064 | - | } | |||
| 1065 | - | } | |||
| 1066 | - | fallthrough | |||
| 1067 | - | ||||
| 1068 | - | case stateContextMapTransform: | |||
| 1069 | - | var bits uint32 | |||
| 1070 | - | if !safeReadBits(br, 1, &bits) { | |||
| 1071 | - | s.substate_context_map = stateContextMapTransform | |||
| 1072 | - | return decoderNeedsMoreInput | |||
| 1073 | - | } | |||
| 1074 | - | ||||
| 1075 | - | if bits != 0 { | |||
| 1076 | - | inverseMoveToFrontTransform(*context_map_arg, context_map_size, s) | |||
| 1077 | - | } | |||
| 1078 | - | ||||
| 1079 | - | s.substate_context_map = stateContextMapNone | |||
| 1080 | - | return decoderSuccess | |||
| 1081 | - | ||||
| 1082 | - | default: | |||
| 1083 | - | return decoderErrorUnreachable | |||
| 1084 | - | } | |||
| 1085 | - | } | |||
| 1086 | - | ||||
| 1087 | - | /* Decodes a command or literal and updates block type ring-buffer. | |||
| 1088 | - | Reads 3..54 bits. */ | |||
| 1089 | - | func decodeBlockTypeAndLength(safe int, s *Reader, tree_type int) bool { | |||
| 1090 | - | var max_block_type uint32 = s.num_block_types[tree_type] | |||
| 1091 | - | type_tree := s.block_type_trees[tree_type*huffmanMaxSize258:] | |||
| 1092 | - | len_tree := s.block_len_trees[tree_type*huffmanMaxSize26:] | |||
| 1093 | - | var br *bitReader = &s.br | |||
| 1094 | - | var ringbuffer []uint32 = s.block_type_rb[tree_type*2:] | |||
| 1095 | - | var block_type uint32 | |||
| 1096 | - | if max_block_type <= 1 { | |||
| 1097 | - | return false | |||
| 1098 | - | } | |||
| 1099 | - | ||||
| 1100 | - | /* Read 0..15 + 3..39 bits. */ | |||
| 1101 | - | if safe == 0 { | |||
| 1102 | - | block_type = readSymbol(type_tree, br) | |||
| 1103 | - | s.block_length[tree_type] = readBlockLength(len_tree, br) | |||
| 1104 | - | } else { | |||
| 1105 | - | var memento bitReaderState | |||
| 1106 | - | bitReaderSaveState(br, &memento) | |||
| 1107 | - | if !safeReadSymbol(type_tree, br, &block_type) { | |||
| 1108 | - | return false | |||
| 1109 | - | } | |||
| 1110 | - | if !safeReadBlockLength(s, &s.block_length[tree_type], len_tree, br) { | |||
| 1111 | - | s.substate_read_block_length = stateReadBlockLengthNone | |||
| 1112 | - | bitReaderRestoreState(br, &memento) | |||
| 1113 | - | return false | |||
| 1114 | - | } | |||
| 1115 | - | } | |||
| 1116 | - | ||||
| 1117 | - | if block_type == 1 { | |||
| 1118 | - | block_type = ringbuffer[1] + 1 | |||
| 1119 | - | } else if block_type == 0 { | |||
| 1120 | - | block_type = ringbuffer[0] | |||
| 1121 | - | } else { | |||
| 1122 | - | block_type -= 2 | |||
| 1123 | - | } | |||
| 1124 | - | ||||
| 1125 | - | if block_type >= max_block_type { | |||
| 1126 | - | block_type -= max_block_type | |||
| 1127 | - | } | |||
| 1128 | - | ||||
| 1129 | - | ringbuffer[0] = ringbuffer[1] | |||
| 1130 | - | ringbuffer[1] = block_type | |||
| 1131 | - | return true | |||
| 1132 | - | } | |||
| 1133 | - | ||||
| 1134 | - | func detectTrivialLiteralBlockTypes(s *Reader) { | |||
| 1135 | - | var i uint | |||
| 1136 | - | for i = 0; i < 8; i++ { | |||
| 1137 | - | s.trivial_literal_contexts[i] = 0 | |||
| 1138 | - | } | |||
| 1139 | - | for i = 0; uint32(i) < s.num_block_types[0]; i++ { | |||
| 1140 | - | var offset uint = i << literalContextBits | |||
| 1141 | - | var error uint = 0 | |||
| 1142 | - | var sample uint = uint(s.context_map[offset]) | |||
| 1143 | - | var j uint | |||
| 1144 | - | for j = 0; j < 1<<literalContextBits; { | |||
| 1145 | - | var k int | |||
| 1146 | - | for k = 0; k < 4; k++ { | |||
| 1147 | - | error |= uint(s.context_map[offset+j]) ^ sample | |||
| 1148 | - | j++ | |||
| 1149 | - | } | |||
| 1150 | - | } | |||
| 1151 | - | ||||
| 1152 | - | if error == 0 { | |||
| 1153 | - | s.trivial_literal_contexts[i>>5] |= 1 << (i & 31) | |||
| 1154 | - | } | |||
| 1155 | - | } | |||
| 1156 | - | } | |||
| 1157 | - | ||||
| 1158 | - | func prepareLiteralDecoding(s *Reader) { | |||
| 1159 | - | var context_mode byte | |||
| 1160 | - | var trivial uint | |||
| 1161 | - | var block_type uint32 = s.block_type_rb[1] | |||
| 1162 | - | var context_offset uint32 = block_type << literalContextBits | |||
| 1163 | - | s.context_map_slice = s.context_map[context_offset:] | |||
| 1164 | - | trivial = uint(s.trivial_literal_contexts[block_type>>5]) | |||
| 1165 | - | s.trivial_literal_context = int((trivial >> (block_type & 31)) & 1) | |||
| 1166 | - | s.literal_htree = []huffmanCode(s.literal_hgroup.htrees[s.context_map_slice[0]]) | |||
| 1167 | - | context_mode = s.context_modes[block_type] & 3 | |||
| 1168 | - | s.context_lookup = getContextLUT(int(context_mode)) | |||
| 1169 | - | } | |||
| 1170 | - | ||||
| 1171 | - | /* Decodes the block type and updates the state for literal context. | |||
| 1172 | - | Reads 3..54 bits. */ | |||
| 1173 | - | func decodeLiteralBlockSwitchInternal(safe int, s *Reader) bool { | |||
| 1174 | - | if !decodeBlockTypeAndLength(safe, s, 0) { | |||
| 1175 | - | return false | |||
| 1176 | - | } | |||
| 1177 | - | ||||
| 1178 | - | prepareLiteralDecoding(s) | |||
| 1179 | - | return true | |||
| 1180 | - | } | |||
| 1181 | - | ||||
| 1182 | - | func decodeLiteralBlockSwitch(s *Reader) { | |||
| 1183 | - | decodeLiteralBlockSwitchInternal(0, s) | |||
| 1184 | - | } | |||
| 1185 | - | ||||
| 1186 | - | func safeDecodeLiteralBlockSwitch(s *Reader) bool { | |||
| 1187 | - | return decodeLiteralBlockSwitchInternal(1, s) | |||
| 1188 | - | } | |||
| 1189 | - | ||||
| 1190 | - | /* Block switch for insert/copy length. | |||
| 1191 | - | Reads 3..54 bits. */ | |||
| 1192 | - | func decodeCommandBlockSwitchInternal(safe int, s *Reader) bool { | |||
| 1193 | - | if !decodeBlockTypeAndLength(safe, s, 1) { | |||
| 1194 | - | return false | |||
| 1195 | - | } | |||
| 1196 | - | ||||
| 1197 | - | s.htree_command = []huffmanCode(s.insert_copy_hgroup.htrees[s.block_type_rb[3]]) | |||
| 1198 | - | return true | |||
| 1199 | - | } | |||
| 1200 | - | ||||
| 1201 | - | func decodeCommandBlockSwitch(s *Reader) { | |||
| 1202 | - | decodeCommandBlockSwitchInternal(0, s) | |||
| 1203 | - | } | |||
| 1204 | - | ||||
| 1205 | - | func safeDecodeCommandBlockSwitch(s *Reader) bool { | |||
| 1206 | - | return decodeCommandBlockSwitchInternal(1, s) | |||
| 1207 | - | } | |||
| 1208 | - | ||||
| 1209 | - | /* Block switch for distance codes. | |||
| 1210 | - | Reads 3..54 bits. */ | |||
| 1211 | - | func decodeDistanceBlockSwitchInternal(safe int, s *Reader) bool { | |||
| 1212 | - | if !decodeBlockTypeAndLength(safe, s, 2) { | |||
| 1213 | - | return false | |||
| 1214 | - | } | |||
| 1215 | - | ||||
| 1216 | - | s.dist_context_map_slice = s.dist_context_map[s.block_type_rb[5]<<distanceContextBits:] | |||
| 1217 | - | s.dist_htree_index = s.dist_context_map_slice[s.distance_context] | |||
| 1218 | - | return true | |||
| 1219 | - | } | |||
| 1220 | - | ||||
| 1221 | - | func decodeDistanceBlockSwitch(s *Reader) { | |||
| 1222 | - | decodeDistanceBlockSwitchInternal(0, s) | |||
| 1223 | - | } | |||
| 1224 | - | ||||
| 1225 | - | func safeDecodeDistanceBlockSwitch(s *Reader) bool { | |||
| 1226 | - | return decodeDistanceBlockSwitchInternal(1, s) | |||
| 1227 | - | } | |||
| 1228 | - | ||||
| 1229 | - | func unwrittenBytes(s *Reader, wrap bool) uint { | |||
| 1230 | - | var pos uint | |||
| 1231 | - | if wrap && s.pos > s.ringbuffer_size { | |||
| 1232 | - | pos = uint(s.ringbuffer_size) | |||
| 1233 | - | } else { | |||
| 1234 | - | pos = uint(s.pos) | |||
| 1235 | - | } | |||
| 1236 | - | var partial_pos_rb uint = (s.rb_roundtrips * uint(s.ringbuffer_size)) + pos | |||
| 1237 | - | return partial_pos_rb - s.partial_pos_out | |||
| 1238 | - | } | |||
| 1239 | - | ||||
| 1240 | - | /* Dumps output. | |||
| 1241 | - | Returns BROTLI_DECODER_NEEDS_MORE_OUTPUT only if there is more output to push | |||
| 1242 | - | and either ring-buffer is as big as window size, or |force| is true. */ | |||
| 1243 | - | func writeRingBuffer(s *Reader, available_out *uint, next_out *[]byte, total_out *uint, force bool) int { | |||
| 1244 | - | start := s.ringbuffer[s.partial_pos_out&uint(s.ringbuffer_mask):] | |||
| 1245 | - | var to_write uint = unwrittenBytes(s, true) | |||
| 1246 | - | var num_written uint = *available_out | |||
| 1247 | - | if num_written > to_write { | |||
| 1248 | - | num_written = to_write | |||
| 1249 | - | } | |||
| 1250 | - | ||||
| 1251 | - | if s.meta_block_remaining_len < 0 { | |||
| 1252 | - | return decoderErrorFormatBlockLength1 | |||
| 1253 | - | } | |||
| 1254 | - | ||||
| 1255 | - | if next_out != nil && *next_out == nil { | |||
| 1256 | - | *next_out = start | |||
| 1257 | - | } else { | |||
| 1258 | - | if next_out != nil { | |||
| 1259 | - | copy(*next_out, start[:num_written]) | |||
| 1260 | - | *next_out = (*next_out)[num_written:] | |||
| 1261 | - | } | |||
| 1262 | - | } | |||
| 1263 | - | ||||
| 1264 | - | *available_out -= num_written | |||
| 1265 | - | s.partial_pos_out += num_written | |||
| 1266 | - | if total_out != nil { | |||
| 1267 | - | *total_out = s.partial_pos_out | |||
| 1268 | - | } | |||
| 1269 | - | ||||
| 1270 | - | if num_written < to_write { | |||
| 1271 | - | if s.ringbuffer_size == 1<<s.window_bits || force { | |||
| 1272 | - | return decoderNeedsMoreOutput | |||
| 1273 | - | } else { | |||
| 1274 | - | return decoderSuccess | |||
| 1275 | - | } | |||
| 1276 | - | } | |||
| 1277 | - | ||||
| 1278 | - | /* Wrap ring buffer only if it has reached its maximal size. */ | |||
| 1279 | - | if s.ringbuffer_size == 1<<s.window_bits && s.pos >= s.ringbuffer_size { | |||
| 1280 | - | s.pos -= s.ringbuffer_size | |||
| 1281 | - | s.rb_roundtrips++ | |||
| 1282 | - | if uint(s.pos) != 0 { | |||
| 1283 | - | s.should_wrap_ringbuffer = 1 | |||
| 1284 | - | } else { | |||
| 1285 | - | s.should_wrap_ringbuffer = 0 | |||
| 1286 | - | } | |||
| 1287 | - | } | |||
| 1288 | - | ||||
| 1289 | - | return decoderSuccess | |||
| 1290 | - | } | |||
| 1291 | - | ||||
| 1292 | - | func wrapRingBuffer(s *Reader) { | |||
| 1293 | - | if s.should_wrap_ringbuffer != 0 { | |||
| 1294 | - | copy(s.ringbuffer, s.ringbuffer_end[:uint(s.pos)]) | |||
| 1295 | - | s.should_wrap_ringbuffer = 0 | |||
| 1296 | - | } | |||
| 1297 | - | } | |||
| 1298 | - | ||||
| 1299 | - | /* Allocates ring-buffer. | |||
| 1300 | - | ||||
| 1301 | - | s->ringbuffer_size MUST be updated by BrotliCalculateRingBufferSize before | |||
| 1302 | - | this function is called. | |||
| 1303 | - | ||||
| 1304 | - | Last two bytes of ring-buffer are initialized to 0, so context calculation | |||
| 1305 | - | could be done uniformly for the first two and all other positions. */ | |||
| 1306 | - | func ensureRingBuffer(s *Reader) bool { | |||
| 1307 | - | var old_ringbuffer []byte | |||
| 1308 | - | if s.ringbuffer_size == s.new_ringbuffer_size { | |||
| 1309 | - | return true | |||
| 1310 | - | } | |||
| 1311 | - | spaceNeeded := int(s.new_ringbuffer_size) + int(kRingBufferWriteAheadSlack) | |||
| 1312 | - | if len(s.ringbuffer) < spaceNeeded { | |||
| 1313 | - | old_ringbuffer = s.ringbuffer | |||
| 1314 | - | s.ringbuffer = make([]byte, spaceNeeded) | |||
| 1315 | - | } | |||
| 1316 | - | ||||
| 1317 | - | s.ringbuffer[s.new_ringbuffer_size-2] = 0 | |||
| 1318 | - | s.ringbuffer[s.new_ringbuffer_size-1] = 0 | |||
| 1319 | - | ||||
| 1320 | - | if old_ringbuffer != nil { | |||
| 1321 | - | copy(s.ringbuffer, old_ringbuffer[:uint(s.pos)]) | |||
| 1322 | - | } | |||
| 1323 | - | ||||
| 1324 | - | s.ringbuffer_size = s.new_ringbuffer_size | |||
| 1325 | - | s.ringbuffer_mask = s.new_ringbuffer_size - 1 | |||
| 1326 | - | s.ringbuffer_end = s.ringbuffer[s.ringbuffer_size:] | |||
| 1327 | - | ||||
| 1328 | - | return true | |||
| 1329 | - | } | |||
| 1330 | - | ||||
| 1331 | - | func copyUncompressedBlockToOutput(available_out *uint, next_out *[]byte, total_out *uint, s *Reader) int { | |||
| 1332 | - | /* TODO: avoid allocation for single uncompressed block. */ | |||
| 1333 | - | if !ensureRingBuffer(s) { | |||
| 1334 | - | return decoderErrorAllocRingBuffer1 | |||
| 1335 | - | } | |||
| 1336 | - | ||||
| 1337 | - | /* State machine */ | |||
| 1338 | - | for { | |||
| 1339 | - | switch s.substate_uncompressed { | |||
| 1340 | - | case stateUncompressedNone: | |||
| 1341 | - | { | |||
| 1342 | - | var nbytes int = int(getRemainingBytes(&s.br)) | |||
| 1343 | - | if nbytes > s.meta_block_remaining_len { | |||
| 1344 | - | nbytes = s.meta_block_remaining_len | |||
| 1345 | - | } | |||
| 1346 | - | ||||
| 1347 | - | if s.pos+nbytes > s.ringbuffer_size { | |||
| 1348 | - | nbytes = s.ringbuffer_size - s.pos | |||
| 1349 | - | } | |||
| 1350 | - | ||||
| 1351 | - | /* Copy remaining bytes from s->br.buf_ to ring-buffer. */ | |||
| 1352 | - | copyBytes(s.ringbuffer[s.pos:], &s.br, uint(nbytes)) | |||
| 1353 | - | ||||
| 1354 | - | s.pos += nbytes | |||
| 1355 | - | s.meta_block_remaining_len -= nbytes | |||
| 1356 | - | if s.pos < 1<<s.window_bits { | |||
| 1357 | - | if s.meta_block_remaining_len == 0 { | |||
| 1358 | - | return decoderSuccess | |||
| 1359 | - | } | |||
| 1360 | - | ||||
| 1361 | - | return decoderNeedsMoreInput | |||
| 1362 | - | } | |||
| 1363 | - | ||||
| 1364 | - | s.substate_uncompressed = stateUncompressedWrite | |||
| 1365 | - | } | |||
| 1366 | - | fallthrough | |||
| 1367 | - | ||||
| 1368 | - | case stateUncompressedWrite: | |||
| 1369 | - | { | |||
| 1370 | - | result := writeRingBuffer(s, available_out, next_out, total_out, false) | |||
| 1371 | - | if result != decoderSuccess { | |||
| 1372 | - | return result | |||
| 1373 | - | } | |||
| 1374 | - | ||||
| 1375 | - | if s.ringbuffer_size == 1<<s.window_bits { | |||
| 1376 | - | s.max_distance = s.max_backward_distance | |||
| 1377 | - | } | |||
| 1378 | - | ||||
| 1379 | - | s.substate_uncompressed = stateUncompressedNone | |||
| 1380 | - | break | |||
| 1381 | - | } | |||
| 1382 | - | } | |||
| 1383 | - | } | |||
| 1384 | - | } | |||
| 1385 | - | ||||
| 1386 | - | /* Calculates the smallest feasible ring buffer. | |||
| 1387 | - | ||||
| 1388 | - | If we know the data size is small, do not allocate more ring buffer | |||
| 1389 | - | size than needed to reduce memory usage. | |||
| 1390 | - | ||||
| 1391 | - | When this method is called, metablock size and flags MUST be decoded. */ | |||
| 1392 | - | func calculateRingBufferSize(s *Reader) { | |||
| 1393 | - | var window_size int = 1 << s.window_bits | |||
| 1394 | - | var new_ringbuffer_size int = window_size | |||
| 1395 | - | var min_size int | |||
| 1396 | - | /* We need at least 2 bytes of ring buffer size to get the last two | |||
| 1397 | - | bytes for context from there */ | |||
| 1398 | - | if s.ringbuffer_size != 0 { | |||
| 1399 | - | min_size = s.ringbuffer_size | |||
| 1400 | - | } else { | |||
| 1401 | - | min_size = 1024 | |||
| 1402 | - | } | |||
| 1403 | - | var output_size int | |||
| 1404 | - | ||||
| 1405 | - | /* If maximum is already reached, no further extension is retired. */ | |||
| 1406 | - | if s.ringbuffer_size == window_size { | |||
| 1407 | - | return | |||
| 1408 | - | } | |||
| 1409 | - | ||||
| 1410 | - | /* Metadata blocks does not touch ring buffer. */ | |||
| 1411 | - | if s.is_metadata != 0 { | |||
| 1412 | - | return | |||
| 1413 | - | } | |||
| 1414 | - | ||||
| 1415 | - | if s.ringbuffer == nil { | |||
| 1416 | - | output_size = 0 | |||
| 1417 | - | } else { | |||
| 1418 | - | output_size = s.pos | |||
| 1419 | - | } | |||
| 1420 | - | ||||
| 1421 | - | output_size += s.meta_block_remaining_len | |||
| 1422 | - | if min_size < output_size { | |||
| 1423 | - | min_size = output_size | |||
| 1424 | - | } | |||
| 1425 | - | ||||
| 1426 | - | if !(s.canny_ringbuffer_allocation == 0) { | |||
| 1427 | - | /* Reduce ring buffer size to save memory when server is unscrupulous. | |||
| 1428 | - | In worst case memory usage might be 1.5x bigger for a short period of | |||
| 1429 | - | ring buffer reallocation. */ | |||
| 1430 | - | for new_ringbuffer_size>>1 >= min_size { | |||
| 1431 | - | new_ringbuffer_size >>= 1 | |||
| 1432 | - | } | |||
| 1433 | - | } | |||
| 1434 | - | ||||
| 1435 | - | s.new_ringbuffer_size = new_ringbuffer_size | |||
| 1436 | - | } | |||
| 1437 | - | ||||
| 1438 | - | /* Reads 1..256 2-bit context modes. */ | |||
| 1439 | - | func readContextModes(s *Reader) int { | |||
| 1440 | - | var br *bitReader = &s.br | |||
| 1441 | - | var i int = s.loop_counter | |||
| 1442 | - | ||||
| 1443 | - | for i < int(s.num_block_types[0]) { | |||
| 1444 | - | var bits uint32 | |||
| 1445 | - | if !safeReadBits(br, 2, &bits) { | |||
| 1446 | - | s.loop_counter = i | |||
| 1447 | - | return decoderNeedsMoreInput | |||
| 1448 | - | } | |||
| 1449 | - | ||||
| 1450 | - | s.context_modes[i] = byte(bits) | |||
| 1451 | - | i++ | |||
| 1452 | - | } | |||
| 1453 | - | ||||
| 1454 | - | return decoderSuccess | |||
| 1455 | - | } | |||
| 1456 | - | ||||
| 1457 | - | func takeDistanceFromRingBuffer(s *Reader) { | |||
| 1458 | - | if s.distance_code == 0 { | |||
| 1459 | - | s.dist_rb_idx-- | |||
| 1460 | - | s.distance_code = s.dist_rb[s.dist_rb_idx&3] | |||
| 1461 | - | ||||
| 1462 | - | /* Compensate double distance-ring-buffer roll for dictionary items. */ | |||
| 1463 | - | s.distance_context = 1 | |||
| 1464 | - | } else { | |||
| 1465 | - | var distance_code int = s.distance_code << 1 | |||
| 1466 | - | const kDistanceShortCodeIndexOffset uint32 = 0xAAAFFF1B | |||
| 1467 | - | const kDistanceShortCodeValueOffset uint32 = 0xFA5FA500 | |||
| 1468 | - | var v int = (s.dist_rb_idx + int(kDistanceShortCodeIndexOffset>>uint(distance_code))) & 0x3 | |||
| 1469 | - | /* kDistanceShortCodeIndexOffset has 2-bit values from LSB: | |||
| 1470 | - | 3, 2, 1, 0, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2 */ | |||
| 1471 | - | ||||
| 1472 | - | /* kDistanceShortCodeValueOffset has 2-bit values from LSB: | |||
| 1473 | - | -0, 0,-0, 0,-1, 1,-2, 2,-3, 3,-1, 1,-2, 2,-3, 3 */ | |||
| 1474 | - | s.distance_code = s.dist_rb[v] | |||
| 1475 | - | ||||
| 1476 | - | v = int(kDistanceShortCodeValueOffset>>uint(distance_code)) & 0x3 | |||
| 1477 | - | if distance_code&0x3 != 0 { | |||
| 1478 | - | s.distance_code += v | |||
| 1479 | - | } else { | |||
| 1480 | - | s.distance_code -= v | |||
| 1481 | - | if s.distance_code <= 0 { | |||
| 1482 | - | /* A huge distance will cause a () soon. | |||
| 1483 | - | This is a little faster than failing here. */ | |||
| 1484 | - | s.distance_code = 0x7FFFFFFF | |||
| 1485 | - | } | |||
| 1486 | - | } | |||
| 1487 | - | } | |||
| 1488 | - | } | |||
| 1489 | - | ||||
| 1490 | - | func safeReadBitsMaybeZero(br *bitReader, n_bits uint32, val *uint32) bool { | |||
| 1491 | - | if n_bits != 0 { | |||
| 1492 | - | return safeReadBits(br, n_bits, val) | |||
| 1493 | - | } else { | |||
| 1494 | - | *val = 0 | |||
| 1495 | - | return true | |||
| 1496 | - | } | |||
| 1497 | - | } | |||
| 1498 | - | ||||
| 1499 | - | /* Precondition: s->distance_code < 0. */ | |||
| 1500 | - | func readDistanceInternal(safe int, s *Reader, br *bitReader) bool { | |||
| 1501 | - | var distval int | |||
| 1502 | - | var memento bitReaderState | |||
| 1503 | - | var distance_tree []huffmanCode = []huffmanCode(s.distance_hgroup.htrees[s.dist_htree_index]) | |||
| 1504 | - | if safe == 0 { | |||
| 1505 | - | s.distance_code = int(readSymbol(distance_tree, br)) | |||
| 1506 | - | } else { | |||
| 1507 | - | var code uint32 | |||
| 1508 | - | bitReaderSaveState(br, &memento) | |||
| 1509 | - | if !safeReadSymbol(distance_tree, br, &code) { | |||
| 1510 | - | return false | |||
| 1511 | - | } | |||
| 1512 | - | ||||
| 1513 | - | s.distance_code = int(code) | |||
| 1514 | - | } | |||
| 1515 | - | ||||
| 1516 | - | /* Convert the distance code to the actual distance by possibly | |||
| 1517 | - | looking up past distances from the s->ringbuffer. */ | |||
| 1518 | - | s.distance_context = 0 | |||
| 1519 | - | ||||
| 1520 | - | if s.distance_code&^0xF == 0 { | |||
| 1521 | - | takeDistanceFromRingBuffer(s) | |||
| 1522 | - | s.block_length[2]-- | |||
| 1523 | - | return true | |||
| 1524 | - | } | |||
| 1525 | - | ||||
| 1526 | - | distval = s.distance_code - int(s.num_direct_distance_codes) | |||
| 1527 | - | if distval >= 0 { | |||
| 1528 | - | var nbits uint32 | |||
| 1529 | - | var postfix int | |||
| 1530 | - | var offset int | |||
| 1531 | - | if safe == 0 && (s.distance_postfix_bits == 0) { | |||
| 1532 | - | nbits = (uint32(distval) >> 1) + 1 | |||
| 1533 | - | offset = ((2 + (distval & 1)) << nbits) - 4 | |||
| 1534 | - | s.distance_code = int(s.num_direct_distance_codes) + offset + int(readBits(br, nbits)) | |||
| 1535 | - | } else { | |||
| 1536 | - | /* This branch also works well when s->distance_postfix_bits == 0. */ | |||
| 1537 | - | var bits uint32 | |||
| 1538 | - | postfix = distval & s.distance_postfix_mask | |||
| 1539 | - | distval >>= s.distance_postfix_bits | |||
| 1540 | - | nbits = (uint32(distval) >> 1) + 1 | |||
| 1541 | - | if safe != 0 { | |||
| 1542 | - | if !safeReadBitsMaybeZero(br, nbits, &bits) { | |||
| 1543 | - | s.distance_code = -1 /* Restore precondition. */ | |||
| 1544 | - | bitReaderRestoreState(br, &memento) | |||
| 1545 | - | return false | |||
| 1546 | - | } | |||
| 1547 | - | } else { | |||
| 1548 | - | bits = readBits(br, nbits) | |||
| 1549 | - | } | |||
| 1550 | - | ||||
| 1551 | - | offset = ((2 + (distval & 1)) << nbits) - 4 | |||
| 1552 | - | s.distance_code = int(s.num_direct_distance_codes) + ((offset + int(bits)) << s.distance_postfix_bits) + postfix | |||
| 1553 | - | } | |||
| 1554 | - | } | |||
| 1555 | - | ||||
| 1556 | - | s.distance_code = s.distance_code - numDistanceShortCodes + 1 | |||
| 1557 | - | s.block_length[2]-- | |||
| 1558 | - | return true | |||
| 1559 | - | } | |||
| 1560 | - | ||||
| 1561 | - | func readDistance(s *Reader, br *bitReader) { | |||
| 1562 | - | readDistanceInternal(0, s, br) | |||
| 1563 | - | } | |||
| 1564 | - | ||||
| 1565 | - | func safeReadDistance(s *Reader, br *bitReader) bool { | |||
| 1566 | - | return readDistanceInternal(1, s, br) | |||
| 1567 | - | } | |||
| 1568 | - | ||||
| 1569 | - | func readCommandInternal(safe int, s *Reader, br *bitReader, insert_length *int) bool { | |||
| 1570 | - | var cmd_code uint32 | |||
| 1571 | - | var insert_len_extra uint32 = 0 | |||
| 1572 | - | var copy_length uint32 | |||
| 1573 | - | var v cmdLutElement | |||
| 1574 | - | var memento bitReaderState | |||
| 1575 | - | if safe == 0 { | |||
| 1576 | - | cmd_code = readSymbol(s.htree_command, br) | |||
| 1577 | - | } else { | |||
| 1578 | - | bitReaderSaveState(br, &memento) | |||
| 1579 | - | if !safeReadSymbol(s.htree_command, br, &cmd_code) { | |||
| 1580 | - | return false | |||
| 1581 | - | } | |||
| 1582 | - | } | |||
| 1583 | - | ||||
| 1584 | - | v = kCmdLut[cmd_code] | |||
| 1585 | - | s.distance_code = int(v.distance_code) | |||
| 1586 | - | s.distance_context = int(v.context) | |||
| 1587 | - | s.dist_htree_index = s.dist_context_map_slice[s.distance_context] | |||
| 1588 | - | *insert_length = int(v.insert_len_offset) | |||
| 1589 | - | if safe == 0 { | |||
| 1590 | - | if v.insert_len_extra_bits != 0 { | |||
| 1591 | - | insert_len_extra = readBits(br, uint32(v.insert_len_extra_bits)) | |||
| 1592 | - | } | |||
| 1593 | - | ||||
| 1594 | - | copy_length = readBits(br, uint32(v.copy_len_extra_bits)) | |||
| 1595 | - | } else { | |||
| 1596 | - | if !safeReadBitsMaybeZero(br, uint32(v.insert_len_extra_bits), &insert_len_extra) || !safeReadBitsMaybeZero(br, uint32(v.copy_len_extra_bits), ©_length) { | |||
| 1597 | - | bitReaderRestoreState(br, &memento) | |||
| 1598 | - | return false | |||
| 1599 | - | } | |||
| 1600 | - | } | |||
| 1601 | - | ||||
| 1602 | - | s.copy_length = int(copy_length) + int(v.copy_len_offset) | |||
| 1603 | - | s.block_length[1]-- | |||
| 1604 | - | *insert_length += int(insert_len_extra) | |||
| 1605 | - | return true | |||
| 1606 | - | } | |||
| 1607 | - | ||||
| 1608 | - | func readCommand(s *Reader, br *bitReader, insert_length *int) { | |||
| 1609 | - | readCommandInternal(0, s, br, insert_length) | |||
| 1610 | - | } | |||
| 1611 | - | ||||
| 1612 | - | func safeReadCommand(s *Reader, br *bitReader, insert_length *int) bool { | |||
| 1613 | - | return readCommandInternal(1, s, br, insert_length) | |||
| 1614 | - | } | |||
| 1615 | - | ||||
| 1616 | - | func checkInputAmountMaybeSafe(safe int, br *bitReader, num uint) bool { | |||
| 1617 | - | if safe != 0 { | |||
| 1618 | - | return true | |||
| 1619 | - | } | |||
| 1620 | - | ||||
| 1621 | - | return checkInputAmount(br, num) | |||
| 1622 | - | } | |||
| 1623 | - | ||||
| 1624 | - | func processCommandsInternal(safe int, s *Reader) int { | |||
| 1625 | - | var pos int = s.pos | |||
| 1626 | - | var i int = s.loop_counter | |||
| 1627 | - | var result int = decoderSuccess | |||
| 1628 | - | var br *bitReader = &s.br | |||
| 1629 | - | var hc []huffmanCode | |||
| 1630 | - | ||||
| 1631 | - | if !checkInputAmountMaybeSafe(safe, br, 28) { | |||
| 1632 | - | result = decoderNeedsMoreInput | |||
| 1633 | - | goto saveStateAndReturn | |||
| 1634 | - | } | |||
| 1635 | - | ||||
| 1636 | - | if safe == 0 { | |||
| 1637 | - | warmupBitReader(br) | |||
| 1638 | - | } | |||
| 1639 | - | ||||
| 1640 | - | /* Jump into state machine. */ | |||
| 1641 | - | if s.state == stateCommandBegin { | |||
| 1642 | - | goto CommandBegin | |||
| 1643 | - | } else if s.state == stateCommandInner { | |||
| 1644 | - | goto CommandInner | |||
| 1645 | - | } else if s.state == stateCommandPostDecodeLiterals { | |||
| 1646 | - | goto CommandPostDecodeLiterals | |||
| 1647 | - | } else if s.state == stateCommandPostWrapCopy { | |||
| 1648 | - | goto CommandPostWrapCopy | |||
| 1649 | - | } else { | |||
| 1650 | - | return decoderErrorUnreachable | |||
| 1651 | - | } | |||
| 1652 | - | ||||
| 1653 | - | CommandBegin: | |||
| 1654 | - | if safe != 0 { | |||
| 1655 | - | s.state = stateCommandBegin | |||
| 1656 | - | } | |||
| 1657 | - | ||||
| 1658 | - | if !checkInputAmountMaybeSafe(safe, br, 28) { /* 156 bits + 7 bytes */ | |||
| 1659 | - | s.state = stateCommandBegin | |||
| 1660 | - | result = decoderNeedsMoreInput | |||
| 1661 | - | goto saveStateAndReturn | |||
| 1662 | - | } | |||
| 1663 | - | ||||
| 1664 | - | if s.block_length[1] == 0 { | |||
| 1665 | - | if safe != 0 { | |||
| 1666 | - | if !safeDecodeCommandBlockSwitch(s) { | |||
| 1667 | - | result = decoderNeedsMoreInput | |||
| 1668 | - | goto saveStateAndReturn | |||
| 1669 | - | } | |||
| 1670 | - | } else { | |||
| 1671 | - | decodeCommandBlockSwitch(s) | |||
| 1672 | - | } | |||
| 1673 | - | ||||
| 1674 | - | goto CommandBegin | |||
| 1675 | - | } | |||
| 1676 | - | ||||
| 1677 | - | /* Read the insert/copy length in the command. */ | |||
| 1678 | - | if safe != 0 { | |||
| 1679 | - | if !safeReadCommand(s, br, &i) { | |||
| 1680 | - | result = decoderNeedsMoreInput | |||
| 1681 | - | goto saveStateAndReturn | |||
| 1682 | - | } | |||
| 1683 | - | } else { | |||
| 1684 | - | readCommand(s, br, &i) | |||
| 1685 | - | } | |||
| 1686 | - | ||||
| 1687 | - | if i == 0 { | |||
| 1688 | - | goto CommandPostDecodeLiterals | |||
| 1689 | - | } | |||
| 1690 | - | ||||
| 1691 | - | s.meta_block_remaining_len -= i | |||
| 1692 | - | ||||
| 1693 | - | CommandInner: | |||
| 1694 | - | if safe != 0 { | |||
| 1695 | - | s.state = stateCommandInner | |||
| 1696 | - | } | |||
| 1697 | - | ||||
| 1698 | - | /* Read the literals in the command. */ | |||
| 1699 | - | if s.trivial_literal_context != 0 { | |||
| 1700 | - | var bits uint32 | |||
| 1701 | - | var value uint32 | |||
| 1702 | - | preloadSymbol(safe, s.literal_htree, br, &bits, &value) | |||
| 1703 | - | for { | |||
| 1704 | - | if !checkInputAmountMaybeSafe(safe, br, 28) { /* 162 bits + 7 bytes */ | |||
| 1705 | - | s.state = stateCommandInner | |||
| 1706 | - | result = decoderNeedsMoreInput | |||
| 1707 | - | goto saveStateAndReturn | |||
| 1708 | - | } | |||
| 1709 | - | ||||
| 1710 | - | if s.block_length[0] == 0 { | |||
| 1711 | - | if safe != 0 { | |||
| 1712 | - | if !safeDecodeLiteralBlockSwitch(s) { | |||
| 1713 | - | result = decoderNeedsMoreInput | |||
| 1714 | - | goto saveStateAndReturn | |||
| 1715 | - | } | |||
| 1716 | - | } else { | |||
| 1717 | - | decodeLiteralBlockSwitch(s) | |||
| 1718 | - | } | |||
| 1719 | - | ||||
| 1720 | - | preloadSymbol(safe, s.literal_htree, br, &bits, &value) | |||
| 1721 | - | if s.trivial_literal_context == 0 { | |||
| 1722 | - | goto CommandInner | |||
| 1723 | - | } | |||
| 1724 | - | } | |||
| 1725 | - | ||||
| 1726 | - | if safe == 0 { | |||
| 1727 | - | s.ringbuffer[pos] = byte(readPreloadedSymbol(s.literal_htree, br, &bits, &value)) | |||
| 1728 | - | } else { | |||
| 1729 | - | var literal uint32 | |||
| 1730 | - | if !safeReadSymbol(s.literal_htree, br, &literal) { | |||
| 1731 | - | result = decoderNeedsMoreInput | |||
| 1732 | - | goto saveStateAndReturn | |||
| 1733 | - | } | |||
| 1734 | - | ||||
| 1735 | - | s.ringbuffer[pos] = byte(literal) | |||
| 1736 | - | } | |||
| 1737 | - | ||||
| 1738 | - | s.block_length[0]-- | |||
| 1739 | - | pos++ | |||
| 1740 | - | if pos == s.ringbuffer_size { | |||
| 1741 | - | s.state = stateCommandInnerWrite | |||
| 1742 | - | i-- | |||
| 1743 | - | goto saveStateAndReturn | |||
| 1744 | - | } | |||
| 1745 | - | i-- | |||
| 1746 | - | if i == 0 { | |||
| 1747 | - | break | |||
| 1748 | - | } | |||
| 1749 | - | } | |||
| 1750 | - | } else { | |||
| 1751 | - | var p1 byte = s.ringbuffer[(pos-1)&s.ringbuffer_mask] | |||
| 1752 | - | var p2 byte = s.ringbuffer[(pos-2)&s.ringbuffer_mask] | |||
| 1753 | - | for { | |||
| 1754 | - | var context byte | |||
| 1755 | - | if !checkInputAmountMaybeSafe(safe, br, 28) { /* 162 bits + 7 bytes */ | |||
| 1756 | - | s.state = stateCommandInner | |||
| 1757 | - | result = decoderNeedsMoreInput | |||
| 1758 | - | goto saveStateAndReturn | |||
| 1759 | - | } | |||
| 1760 | - | ||||
| 1761 | - | if s.block_length[0] == 0 { | |||
| 1762 | - | if safe != 0 { | |||
| 1763 | - | if !safeDecodeLiteralBlockSwitch(s) { | |||
| 1764 | - | result = decoderNeedsMoreInput | |||
| 1765 | - | goto saveStateAndReturn | |||
| 1766 | - | } | |||
| 1767 | - | } else { | |||
| 1768 | - | decodeLiteralBlockSwitch(s) | |||
| 1769 | - | } | |||
| 1770 | - | ||||
| 1771 | - | if s.trivial_literal_context != 0 { | |||
| 1772 | - | goto CommandInner | |||
| 1773 | - | } | |||
| 1774 | - | } | |||
| 1775 | - | ||||
| 1776 | - | context = getContext(p1, p2, s.context_lookup) | |||
| 1777 | - | hc = []huffmanCode(s.literal_hgroup.htrees[s.context_map_slice[context]]) | |||
| 1778 | - | p2 = p1 | |||
| 1779 | - | if safe == 0 { | |||
| 1780 | - | p1 = byte(readSymbol(hc, br)) | |||
| 1781 | - | } else { | |||
| 1782 | - | var literal uint32 | |||
| 1783 | - | if !safeReadSymbol(hc, br, &literal) { | |||
| 1784 | - | result = decoderNeedsMoreInput | |||
| 1785 | - | goto saveStateAndReturn | |||
| 1786 | - | } | |||
| 1787 | - | ||||
| 1788 | - | p1 = byte(literal) | |||
| 1789 | - | } | |||
| 1790 | - | ||||
| 1791 | - | s.ringbuffer[pos] = p1 | |||
| 1792 | - | s.block_length[0]-- | |||
| 1793 | - | pos++ | |||
| 1794 | - | if pos == s.ringbuffer_size { | |||
| 1795 | - | s.state = stateCommandInnerWrite | |||
| 1796 | - | i-- | |||
| 1797 | - | goto saveStateAndReturn | |||
| 1798 | - | } | |||
| 1799 | - | i-- | |||
| 1800 | - | if i == 0 { | |||
| 1801 | - | break | |||
| 1802 | - | } | |||
| 1803 | - | } | |||
| 1804 | - | } | |||
| 1805 | - | ||||
| 1806 | - | if s.meta_block_remaining_len <= 0 { | |||
| 1807 | - | s.state = stateMetablockDone | |||
| 1808 | - | goto saveStateAndReturn | |||
| 1809 | - | } | |||
| 1810 | - | ||||
| 1811 | - | CommandPostDecodeLiterals: | |||
| 1812 | - | if safe != 0 { | |||
| 1813 | - | s.state = stateCommandPostDecodeLiterals | |||
| 1814 | - | } | |||
| 1815 | - | ||||
| 1816 | - | if s.distance_code >= 0 { | |||
| 1817 | - | /* Implicit distance case. */ | |||
| 1818 | - | if s.distance_code != 0 { | |||
| 1819 | - | s.distance_context = 0 | |||
| 1820 | - | } else { | |||
| 1821 | - | s.distance_context = 1 | |||
| 1822 | - | } | |||
| 1823 | - | ||||
| 1824 | - | s.dist_rb_idx-- | |||
| 1825 | - | s.distance_code = s.dist_rb[s.dist_rb_idx&3] | |||
| 1826 | - | } else { | |||
| 1827 | - | /* Read distance code in the command, unless it was implicitly zero. */ | |||
| 1828 | - | if s.block_length[2] == 0 { | |||
| 1829 | - | if safe != 0 { | |||
| 1830 | - | if !safeDecodeDistanceBlockSwitch(s) { | |||
| 1831 | - | result = decoderNeedsMoreInput | |||
| 1832 | - | goto saveStateAndReturn | |||
| 1833 | - | } | |||
| 1834 | - | } else { | |||
| 1835 | - | decodeDistanceBlockSwitch(s) | |||
| 1836 | - | } | |||
| 1837 | - | } | |||
| 1838 | - | ||||
| 1839 | - | if safe != 0 { | |||
| 1840 | - | if !safeReadDistance(s, br) { | |||
| 1841 | - | result = decoderNeedsMoreInput | |||
| 1842 | - | goto saveStateAndReturn | |||
| 1843 | - | } | |||
| 1844 | - | } else { | |||
| 1845 | - | readDistance(s, br) | |||
| 1846 | - | } | |||
| 1847 | - | } | |||
| 1848 | - | ||||
| 1849 | - | if s.max_distance != s.max_backward_distance { | |||
| 1850 | - | if pos < s.max_backward_distance { | |||
| 1851 | - | s.max_distance = pos | |||
| 1852 | - | } else { | |||
| 1853 | - | s.max_distance = s.max_backward_distance | |||
| 1854 | - | } | |||
| 1855 | - | } | |||
| 1856 | - | ||||
| 1857 | - | i = s.copy_length | |||
| 1858 | - | ||||
| 1859 | - | /* Apply copy of LZ77 back-reference, or static dictionary reference if | |||
| 1860 | - | the distance is larger than the max LZ77 distance */ | |||
| 1861 | - | if s.distance_code > s.max_distance { | |||
| 1862 | - | /* The maximum allowed distance is BROTLI_MAX_ALLOWED_DISTANCE = 0x7FFFFFFC. | |||
| 1863 | - | With this choice, no signed overflow can occur after decoding | |||
| 1864 | - | a special distance code (e.g., after adding 3 to the last distance). */ | |||
| 1865 | - | if s.distance_code > maxAllowedDistance { | |||
| 1866 | - | return decoderErrorFormatDistance | |||
| 1867 | - | } | |||
| 1868 | - | ||||
| 1869 | - | if i >= minDictionaryWordLength && i <= maxDictionaryWordLength { | |||
| 1870 | - | var address int = s.distance_code - s.max_distance - 1 | |||
| 1871 | - | var words *dictionary = s.dictionary | |||
| 1872 | - | var trans *transforms = s.transforms | |||
| 1873 | - | var offset int = int(s.dictionary.offsets_by_length[i]) | |||
| 1874 | - | var shift uint32 = uint32(s.dictionary.size_bits_by_length[i]) | |||
| 1875 | - | var mask int = int(bitMask(shift)) | |||
| 1876 | - | var word_idx int = address & mask | |||
| 1877 | - | var transform_idx int = address >> shift | |||
| 1878 | - | ||||
| 1879 | - | /* Compensate double distance-ring-buffer roll. */ | |||
| 1880 | - | s.dist_rb_idx += s.distance_context | |||
| 1881 | - | ||||
| 1882 | - | offset += word_idx * i | |||
| 1883 | - | if words.data == nil { | |||
| 1884 | - | return decoderErrorDictionaryNotSet | |||
| 1885 | - | } | |||
| 1886 | - | ||||
| 1887 | - | if transform_idx < int(trans.num_transforms) { | |||
| 1888 | - | word := words.data[offset:] | |||
| 1889 | - | var len int = i | |||
| 1890 | - | if transform_idx == int(trans.cutOffTransforms[0]) { | |||
| 1891 | - | copy(s.ringbuffer[pos:], word[:uint(len)]) | |||
| 1892 | - | } else { | |||
| 1893 | - | len = transformDictionaryWord(s.ringbuffer[pos:], word, int(len), trans, transform_idx) | |||
| 1894 | - | } | |||
| 1895 | - | ||||
| 1896 | - | pos += int(len) | |||
| 1897 | - | s.meta_block_remaining_len -= int(len) | |||
| 1898 | - | if pos >= s.ringbuffer_size { | |||
| 1899 | - | s.state = stateCommandPostWrite1 | |||
| 1900 | - | goto saveStateAndReturn | |||
| 1901 | - | } | |||
| 1902 | - | } else { | |||
| 1903 | - | return decoderErrorFormatTransform | |||
| 1904 | - | } | |||
| 1905 | - | } else { | |||
| 1906 | - | return decoderErrorFormatDictionary | |||
| 1907 | - | } | |||
| 1908 | - | } else { | |||
| 1909 | - | var src_start int = (pos - s.distance_code) & s.ringbuffer_mask | |||
| 1910 | - | copy_dst := s.ringbuffer[pos:] | |||
| 1911 | - | copy_src := s.ringbuffer[src_start:] | |||
| 1912 | - | var dst_end int = pos + i | |||
| 1913 | - | var src_end int = src_start + i | |||
| 1914 | - | ||||
| 1915 | - | /* Update the recent distances cache. */ | |||
| 1916 | - | s.dist_rb[s.dist_rb_idx&3] = s.distance_code | |||
| 1917 | - | ||||
| 1918 | - | s.dist_rb_idx++ | |||
| 1919 | - | s.meta_block_remaining_len -= i | |||
| 1920 | - | ||||
| 1921 | - | /* There are 32+ bytes of slack in the ring-buffer allocation. | |||
| 1922 | - | Also, we have 16 short codes, that make these 16 bytes irrelevant | |||
| 1923 | - | in the ring-buffer. Let's copy over them as a first guess. */ | |||
| 1924 | - | copy(copy_dst, copy_src[:16]) | |||
| 1925 | - | ||||
| 1926 | - | if src_end > pos && dst_end > src_start { | |||
| 1927 | - | /* Regions intersect. */ | |||
| 1928 | - | goto CommandPostWrapCopy | |||
| 1929 | - | } | |||
| 1930 | - | ||||
| 1931 | - | if dst_end >= s.ringbuffer_size || src_end >= s.ringbuffer_size { | |||
| 1932 | - | /* At least one region wraps. */ | |||
| 1933 | - | goto CommandPostWrapCopy | |||
| 1934 | - | } | |||
| 1935 | - | ||||
| 1936 | - | pos += i | |||
| 1937 | - | if i > 16 { | |||
| 1938 | - | if i > 32 { | |||
| 1939 | - | copy(copy_dst[16:], copy_src[16:][:uint(i-16)]) | |||
| 1940 | - | } else { | |||
| 1941 | - | /* This branch covers about 45% cases. | |||
| 1942 | - | Fixed size short copy allows more compiler optimizations. */ | |||
| 1943 | - | copy(copy_dst[16:], copy_src[16:][:16]) | |||
| 1944 | - | } | |||
| 1945 | - | } | |||
| 1946 | - | } | |||
| 1947 | - | ||||
| 1948 | - | if s.meta_block_remaining_len <= 0 { | |||
| 1949 | - | /* Next metablock, if any. */ | |||
| 1950 | - | s.state = stateMetablockDone | |||
| 1951 | - | ||||
| 1952 | - | goto saveStateAndReturn | |||
| 1953 | - | } else { | |||
| 1954 | - | goto CommandBegin | |||
| 1955 | - | } | |||
| 1956 | - | CommandPostWrapCopy: | |||
| 1957 | - | { | |||
| 1958 | - | var wrap_guard int = s.ringbuffer_size - pos | |||
| 1959 | - | for { | |||
| 1960 | - | i-- | |||
| 1961 | - | if i < 0 { | |||
| 1962 | - | break | |||
| 1963 | - | } | |||
| 1964 | - | s.ringbuffer[pos] = s.ringbuffer[(pos-s.distance_code)&s.ringbuffer_mask] | |||
| 1965 | - | pos++ | |||
| 1966 | - | wrap_guard-- | |||
| 1967 | - | if wrap_guard == 0 { | |||
| 1968 | - | s.state = stateCommandPostWrite2 | |||
| 1969 | - | goto saveStateAndReturn | |||
| 1970 | - | } | |||
| 1971 | - | } | |||
| 1972 | - | } | |||
| 1973 | - | ||||
| 1974 | - | if s.meta_block_remaining_len <= 0 { | |||
| 1975 | - | /* Next metablock, if any. */ | |||
| 1976 | - | s.state = stateMetablockDone | |||
| 1977 | - | ||||
| 1978 | - | goto saveStateAndReturn | |||
| 1979 | - | } else { | |||
| 1980 | - | goto CommandBegin | |||
| 1981 | - | } | |||
| 1982 | - | ||||
| 1983 | - | saveStateAndReturn: | |||
| 1984 | - | s.pos = pos | |||
| 1985 | - | s.loop_counter = i | |||
| 1986 | - | return result | |||
| 1987 | - | } | |||
| 1988 | - | ||||
| 1989 | - | func processCommands(s *Reader) int { | |||
| 1990 | - | return processCommandsInternal(0, s) | |||
| 1991 | - | } | |||
| 1992 | - | ||||
| 1993 | - | func safeProcessCommands(s *Reader) int { | |||
| 1994 | - | return processCommandsInternal(1, s) | |||
| 1995 | - | } | |||
| 1996 | - | ||||
| 1997 | - | /* Returns the maximum number of distance symbols which can only represent | |||
| 1998 | - | distances not exceeding BROTLI_MAX_ALLOWED_DISTANCE. */ | |||
| 1999 | - | ||||
| 2000 | - | var maxDistanceSymbol_bound = [maxNpostfix + 1]uint32{0, 4, 12, 28} | |||
| 2001 | - | var maxDistanceSymbol_diff = [maxNpostfix + 1]uint32{73, 126, 228, 424} | |||
| 2002 | - | ||||
| 2003 | - | func maxDistanceSymbol(ndirect uint32, npostfix uint32) uint32 { | |||
| 2004 | - | var postfix uint32 = 1 << npostfix | |||
| 2005 | - | if ndirect < maxDistanceSymbol_bound[npostfix] { | |||
| 2006 | - | return ndirect + maxDistanceSymbol_diff[npostfix] + postfix | |||
| 2007 | - | } else if ndirect > maxDistanceSymbol_bound[npostfix]+postfix { | |||
| 2008 | - | return ndirect + maxDistanceSymbol_diff[npostfix] | |||
| 2009 | - | } else { | |||
| 2010 | - | return maxDistanceSymbol_bound[npostfix] + maxDistanceSymbol_diff[npostfix] + postfix | |||
| 2011 | - | } | |||
| 2012 | - | } | |||
| 2013 | - | ||||
| 2014 | - | /* Invariant: input stream is never overconsumed: | |||
| 2015 | - | - invalid input implies that the whole stream is invalid -> any amount of | |||
| 2016 | - | input could be read and discarded | |||
| 2017 | - | - when result is "needs more input", then at least one more byte is REQUIRED | |||
| 2018 | - | to complete decoding; all input data MUST be consumed by decoder, so | |||
| 2019 | - | client could swap the input buffer | |||
| 2020 | - | - when result is "needs more output" decoder MUST ensure that it doesn't | |||
| 2021 | - | hold more than 7 bits in bit reader; this saves client from swapping input | |||
| 2022 | - | buffer ahead of time | |||
| 2023 | - | - when result is "success" decoder MUST return all unused data back to input | |||
| 2024 | - | buffer; this is possible because the invariant is held on enter */ | |||
| 2025 | - | func decoderDecompressStream(s *Reader, available_in *uint, next_in *[]byte, available_out *uint, next_out *[]byte) int { | |||
| 2026 | - | var result int = decoderSuccess | |||
| 2027 | - | var br *bitReader = &s.br | |||
| 2028 | - | ||||
| 2029 | - | /* Do not try to process further in a case of unrecoverable error. */ | |||
| 2030 | - | if int(s.error_code) < 0 { | |||
| 2031 | - | return decoderResultError | |||
| 2032 | - | } | |||
| 2033 | - | ||||
| 2034 | - | if *available_out != 0 && (next_out == nil || *next_out == nil) { | |||
| 2035 | - | return saveErrorCode(s, decoderErrorInvalidArguments) | |||
| 2036 | - | } | |||
| 2037 | - | ||||
| 2038 | - | if *available_out == 0 { | |||
| 2039 | - | next_out = nil | |||
| 2040 | - | } | |||
| 2041 | - | if s.buffer_length == 0 { /* Just connect bit reader to input stream. */ | |||
| 2042 | - | br.input_len = *available_in | |||
| 2043 | - | br.input = *next_in | |||
| 2044 | - | br.byte_pos = 0 | |||
| 2045 | - | } else { | |||
| 2046 | - | /* At least one byte of input is required. More than one byte of input may | |||
| 2047 | - | be required to complete the transaction -> reading more data must be | |||
| 2048 | - | done in a loop -> do it in a main loop. */ | |||
| 2049 | - | result = decoderNeedsMoreInput | |||
| 2050 | - | ||||
| 2051 | - | br.input = s.buffer.u8[:] | |||
| 2052 | - | br.byte_pos = 0 | |||
| 2053 | - | } | |||
| 2054 | - | ||||
| 2055 | - | /* State machine */ | |||
| 2056 | - | for { | |||
| 2057 | - | if result != decoderSuccess { | |||
| 2058 | - | /* Error, needs more input/output. */ | |||
| 2059 | - | if result == decoderNeedsMoreInput { | |||
| 2060 | - | if s.ringbuffer != nil { /* Pro-actively push output. */ | |||
| 2061 | - | var intermediate_result int = writeRingBuffer(s, available_out, next_out, nil, true) | |||
| 2062 | - | ||||
| 2063 | - | /* WriteRingBuffer checks s->meta_block_remaining_len validity. */ | |||
| 2064 | - | if int(intermediate_result) < 0 { | |||
| 2065 | - | result = intermediate_result | |||
| 2066 | - | break | |||
| 2067 | - | } | |||
| 2068 | - | } | |||
| 2069 | - | ||||
| 2070 | - | if s.buffer_length != 0 { /* Used with internal buffer. */ | |||
| 2071 | - | if br.byte_pos == br.input_len { | |||
| 2072 | - | /* Successfully finished read transaction. | |||
| 2073 | - | Accumulator contains less than 8 bits, because internal buffer | |||
| 2074 | - | is expanded byte-by-byte until it is enough to complete read. */ | |||
| 2075 | - | s.buffer_length = 0 | |||
| 2076 | - | ||||
| 2077 | - | /* Switch to input stream and restart. */ | |||
| 2078 | - | result = decoderSuccess | |||
| 2079 | - | ||||
| 2080 | - | br.input_len = *available_in | |||
| 2081 | - | br.input = *next_in | |||
| 2082 | - | br.byte_pos = 0 | |||
| 2083 | - | continue | |||
| 2084 | - | } else if *available_in != 0 { | |||
| 2085 | - | /* Not enough data in buffer, but can take one more byte from | |||
| 2086 | - | input stream. */ | |||
| 2087 | - | result = decoderSuccess | |||
| 2088 | - | ||||
| 2089 | - | s.buffer.u8[s.buffer_length] = (*next_in)[0] | |||
| 2090 | - | s.buffer_length++ | |||
| 2091 | - | br.input_len = uint(s.buffer_length) | |||
| 2092 | - | *next_in = (*next_in)[1:] | |||
| 2093 | - | (*available_in)-- | |||
| 2094 | - | ||||
| 2095 | - | /* Retry with more data in buffer. */ | |||
| 2096 | - | continue | |||
| 2097 | - | } | |||
| 2098 | - | ||||
| 2099 | - | /* Can't finish reading and no more input. */ | |||
| 2100 | - | break | |||
| 2101 | - | /* Input stream doesn't contain enough input. */ | |||
| 2102 | - | } else { | |||
| 2103 | - | /* Copy tail to internal buffer and return. */ | |||
| 2104 | - | *next_in = br.input[br.byte_pos:] | |||
| 2105 | - | ||||
| 2106 | - | *available_in = br.input_len - br.byte_pos | |||
| 2107 | - | for *available_in != 0 { | |||
| 2108 | - | s.buffer.u8[s.buffer_length] = (*next_in)[0] | |||
| 2109 | - | s.buffer_length++ | |||
| 2110 | - | *next_in = (*next_in)[1:] | |||
| 2111 | - | (*available_in)-- | |||
| 2112 | - | } | |||
| 2113 | - | ||||
| 2114 | - | break | |||
| 2115 | - | } | |||
| 2116 | - | } | |||
| 2117 | - | ||||
| 2118 | - | /* Unreachable. */ | |||
| 2119 | - | ||||
| 2120 | - | /* Fail or needs more output. */ | |||
| 2121 | - | if s.buffer_length != 0 { | |||
| 2122 | - | /* Just consumed the buffered input and produced some output. Otherwise | |||
| 2123 | - | it would result in "needs more input". Reset internal buffer. */ | |||
| 2124 | - | s.buffer_length = 0 | |||
| 2125 | - | } else { | |||
| 2126 | - | /* Using input stream in last iteration. When decoder switches to input | |||
| 2127 | - | stream it has less than 8 bits in accumulator, so it is safe to | |||
| 2128 | - | return unused accumulator bits there. */ | |||
| 2129 | - | bitReaderUnload(br) | |||
| 2130 | - | ||||
| 2131 | - | *available_in = br.input_len - br.byte_pos | |||
| 2132 | - | *next_in = br.input[br.byte_pos:] | |||
| 2133 | - | } | |||
| 2134 | - | ||||
| 2135 | - | break | |||
| 2136 | - | } | |||
| 2137 | - | ||||
| 2138 | - | switch s.state { | |||
| 2139 | - | /* Prepare to the first read. */ | |||
| 2140 | - | case stateUninited: | |||
| 2141 | - | if !warmupBitReader(br) { | |||
| 2142 | - | result = decoderNeedsMoreInput | |||
| 2143 | - | break | |||
| 2144 | - | } | |||
| 2145 | - | ||||
| 2146 | - | /* Decode window size. */ | |||
| 2147 | - | result = decodeWindowBits(s, br) /* Reads 1..8 bits. */ | |||
| 2148 | - | if result != decoderSuccess { | |||
| 2149 | - | break | |||
| 2150 | - | } | |||
| 2151 | - | ||||
| 2152 | - | if s.large_window { | |||
| 2153 | - | s.state = stateLargeWindowBits | |||
| 2154 | - | break | |||
| 2155 | - | } | |||
| 2156 | - | ||||
| 2157 | - | s.state = stateInitialize | |||
| 2158 | - | ||||
| 2159 | - | case stateLargeWindowBits: | |||
| 2160 | - | if !safeReadBits(br, 6, &s.window_bits) { | |||
| 2161 | - | result = decoderNeedsMoreInput | |||
| 2162 | - | break | |||
| 2163 | - | } | |||
| 2164 | - | ||||
| 2165 | - | if s.window_bits < largeMinWbits || s.window_bits > largeMaxWbits { | |||
| 2166 | - | result = decoderErrorFormatWindowBits | |||
| 2167 | - | break | |||
| 2168 | - | } | |||
| 2169 | - | ||||
| 2170 | - | s.state = stateInitialize | |||
| 2171 | - | fallthrough | |||
| 2172 | - | ||||
| 2173 | - | /* Maximum distance, see section 9.1. of the spec. */ | |||
| 2174 | - | /* Fall through. */ | |||
| 2175 | - | case stateInitialize: | |||
| 2176 | - | s.max_backward_distance = (1 << s.window_bits) - windowGap | |||
| 2177 | - | ||||
| 2178 | - | if s.block_type_trees == nil { | |||
| 2179 | - | /* Allocate memory for both block_type_trees and block_len_trees. */ | |||
| 2180 | - | s.block_type_trees = make([]huffmanCode, (3 * (huffmanMaxSize258 + huffmanMaxSize26))) | |||
| 2181 | - | } | |||
| 2182 | - | ||||
| 2183 | - | s.block_len_trees = s.block_type_trees[3*huffmanMaxSize258:] | |||
| 2184 | - | ||||
| 2185 | - | s.state = stateMetablockBegin | |||
| 2186 | - | fallthrough | |||
| 2187 | - | ||||
| 2188 | - | /* Fall through. */ | |||
| 2189 | - | case stateMetablockBegin: | |||
| 2190 | - | decoderStateMetablockBegin(s) | |||
| 2191 | - | ||||
| 2192 | - | s.state = stateMetablockHeader | |||
| 2193 | - | fallthrough | |||
| 2194 | - | ||||
| 2195 | - | /* Fall through. */ | |||
| 2196 | - | case stateMetablockHeader: | |||
| 2197 | - | result = decodeMetaBlockLength(s, br) | |||
| 2198 | - | /* Reads 2 - 31 bits. */ | |||
| 2199 | - | if result != decoderSuccess { | |||
| 2200 | - | break | |||
| 2201 | - | } | |||
| 2202 | - | ||||
| 2203 | - | if s.is_metadata != 0 || s.is_uncompressed != 0 { | |||
| 2204 | - | if !bitReaderJumpToByteBoundary(br) { | |||
| 2205 | - | result = decoderErrorFormatPadding1 | |||
| 2206 | - | break | |||
| 2207 | - | } | |||
| 2208 | - | } | |||
| 2209 | - | ||||
| 2210 | - | if s.is_metadata != 0 { | |||
| 2211 | - | s.state = stateMetadata | |||
| 2212 | - | break | |||
| 2213 | - | } | |||
| 2214 | - | ||||
| 2215 | - | if s.meta_block_remaining_len == 0 { | |||
| 2216 | - | s.state = stateMetablockDone | |||
| 2217 | - | break | |||
| 2218 | - | } | |||
| 2219 | - | ||||
| 2220 | - | calculateRingBufferSize(s) | |||
| 2221 | - | if s.is_uncompressed != 0 { | |||
| 2222 | - | s.state = stateUncompressed | |||
| 2223 | - | break | |||
| 2224 | - | } | |||
| 2225 | - | ||||
| 2226 | - | s.loop_counter = 0 | |||
| 2227 | - | s.state = stateHuffmanCode0 | |||
| 2228 | - | ||||
| 2229 | - | case stateUncompressed: | |||
| 2230 | - | result = copyUncompressedBlockToOutput(available_out, next_out, nil, s) | |||
| 2231 | - | if result == decoderSuccess { | |||
| 2232 | - | s.state = stateMetablockDone | |||
| 2233 | - | } | |||
| 2234 | - | ||||
| 2235 | - | case stateMetadata: | |||
| 2236 | - | for ; s.meta_block_remaining_len > 0; s.meta_block_remaining_len-- { | |||
| 2237 | - | var bits uint32 | |||
| 2238 | - | ||||
| 2239 | - | /* Read one byte and ignore it. */ | |||
| 2240 | - | if !safeReadBits(br, 8, &bits) { | |||
| 2241 | - | result = decoderNeedsMoreInput | |||
| 2242 | - | break | |||
| 2243 | - | } | |||
| 2244 | - | } | |||
| 2245 | - | ||||
| 2246 | - | if result == decoderSuccess { | |||
| 2247 | - | s.state = stateMetablockDone | |||
| 2248 | - | } | |||
| 2249 | - | ||||
| 2250 | - | case stateHuffmanCode0: | |||
| 2251 | - | if s.loop_counter >= 3 { | |||
| 2252 | - | s.state = stateMetablockHeader2 | |||
| 2253 | - | break | |||
| 2254 | - | } | |||
| 2255 | - | ||||
| 2256 | - | /* Reads 1..11 bits. */ | |||
| 2257 | - | result = decodeVarLenUint8(s, br, &s.num_block_types[s.loop_counter]) | |||
| 2258 | - | ||||
| 2259 | - | if result != decoderSuccess { | |||
| 2260 | - | break | |||
| 2261 | - | } | |||
| 2262 | - | ||||
| 2263 | - | s.num_block_types[s.loop_counter]++ | |||
| 2264 | - | if s.num_block_types[s.loop_counter] < 2 { | |||
| 2265 | - | s.loop_counter++ | |||
| 2266 | - | break | |||
| 2267 | - | } | |||
| 2268 | - | ||||
| 2269 | - | s.state = stateHuffmanCode1 | |||
| 2270 | - | fallthrough | |||
| 2271 | - | ||||
| 2272 | - | case stateHuffmanCode1: | |||
| 2273 | - | { | |||
| 2274 | - | var alphabet_size uint32 = s.num_block_types[s.loop_counter] + 2 | |||
| 2275 | - | var tree_offset int = s.loop_counter * huffmanMaxSize258 | |||
| 2276 | - | result = readHuffmanCode(alphabet_size, alphabet_size, s.block_type_trees[tree_offset:], nil, s) | |||
| 2277 | - | if result != decoderSuccess { | |||
| 2278 | - | break | |||
| 2279 | - | } | |||
| 2280 | - | s.state = stateHuffmanCode2 | |||
| 2281 | - | } | |||
| 2282 | - | fallthrough | |||
| 2283 | - | ||||
| 2284 | - | case stateHuffmanCode2: | |||
| 2285 | - | { | |||
| 2286 | - | var alphabet_size uint32 = numBlockLenSymbols | |||
| 2287 | - | var tree_offset int = s.loop_counter * huffmanMaxSize26 | |||
| 2288 | - | result = readHuffmanCode(alphabet_size, alphabet_size, s.block_len_trees[tree_offset:], nil, s) | |||
| 2289 | - | if result != decoderSuccess { | |||
| 2290 | - | break | |||
| 2291 | - | } | |||
| 2292 | - | s.state = stateHuffmanCode3 | |||
| 2293 | - | } | |||
| 2294 | - | fallthrough | |||
| 2295 | - | ||||
| 2296 | - | case stateHuffmanCode3: | |||
| 2297 | - | var tree_offset int = s.loop_counter * huffmanMaxSize26 | |||
| 2298 | - | if !safeReadBlockLength(s, &s.block_length[s.loop_counter], s.block_len_trees[tree_offset:], br) { | |||
| 2299 | - | result = decoderNeedsMoreInput | |||
| 2300 | - | break | |||
| 2301 | - | } | |||
| 2302 | - | ||||
| 2303 | - | s.loop_counter++ | |||
| 2304 | - | s.state = stateHuffmanCode0 | |||
| 2305 | - | ||||
| 2306 | - | case stateMetablockHeader2: | |||
| 2307 | - | { | |||
| 2308 | - | var bits uint32 | |||
| 2309 | - | if !safeReadBits(br, 6, &bits) { | |||
| 2310 | - | result = decoderNeedsMoreInput | |||
| 2311 | - | break | |||
| 2312 | - | } | |||
| 2313 | - | ||||
| 2314 | - | s.distance_postfix_bits = bits & bitMask(2) | |||
| 2315 | - | bits >>= 2 | |||
| 2316 | - | s.num_direct_distance_codes = numDistanceShortCodes + (bits << s.distance_postfix_bits) | |||
| 2317 | - | s.distance_postfix_mask = int(bitMask(s.distance_postfix_bits)) | |||
| 2318 | - | s.context_modes = make([]byte, uint(s.num_block_types[0])) | |||
| 2319 | - | if s.context_modes == nil { | |||
| 2320 | - | result = decoderErrorAllocContextModes | |||
| 2321 | - | break | |||
| 2322 | - | } | |||
| 2323 | - | ||||
| 2324 | - | s.loop_counter = 0 | |||
| 2325 | - | s.state = stateContextModes | |||
| 2326 | - | } | |||
| 2327 | - | fallthrough | |||
| 2328 | - | ||||
| 2329 | - | case stateContextModes: | |||
| 2330 | - | result = readContextModes(s) | |||
| 2331 | - | ||||
| 2332 | - | if result != decoderSuccess { | |||
| 2333 | - | break | |||
| 2334 | - | } | |||
| 2335 | - | ||||
| 2336 | - | s.state = stateContextMap1 | |||
| 2337 | - | fallthrough | |||
| 2338 | - | ||||
| 2339 | - | case stateContextMap1: | |||
| 2340 | - | result = decodeContextMap(s.num_block_types[0]<<literalContextBits, &s.num_literal_htrees, &s.context_map, s) | |||
| 2341 | - | ||||
| 2342 | - | if result != decoderSuccess { | |||
| 2343 | - | break | |||
| 2344 | - | } | |||
| 2345 | - | ||||
| 2346 | - | detectTrivialLiteralBlockTypes(s) | |||
| 2347 | - | s.state = stateContextMap2 | |||
| 2348 | - | fallthrough | |||
| 2349 | - | ||||
| 2350 | - | case stateContextMap2: | |||
| 2351 | - | { | |||
| 2352 | - | var num_direct_codes uint32 = s.num_direct_distance_codes - numDistanceShortCodes | |||
| 2353 | - | var num_distance_codes uint32 | |||
| 2354 | - | var max_distance_symbol uint32 | |||
| 2355 | - | if s.large_window { | |||
| 2356 | - | num_distance_codes = uint32(distanceAlphabetSize(uint(s.distance_postfix_bits), uint(num_direct_codes), largeMaxDistanceBits)) | |||
| 2357 | - | max_distance_symbol = maxDistanceSymbol(num_direct_codes, s.distance_postfix_bits) | |||
| 2358 | - | } else { | |||
| 2359 | - | num_distance_codes = uint32(distanceAlphabetSize(uint(s.distance_postfix_bits), uint(num_direct_codes), maxDistanceBits)) | |||
| 2360 | - | max_distance_symbol = num_distance_codes | |||
| 2361 | - | } | |||
| 2362 | - | var allocation_success bool = true | |||
| 2363 | - | result = decodeContextMap(s.num_block_types[2]<<distanceContextBits, &s.num_dist_htrees, &s.dist_context_map, s) | |||
| 2364 | - | if result != decoderSuccess { | |||
| 2365 | - | break | |||
| 2366 | - | } | |||
| 2367 | - | ||||
| 2368 | - | decoderHuffmanTreeGroupInit(&s.literal_hgroup, numLiteralSymbols, numLiteralSymbols, s.num_literal_htrees) | |||
| 2369 | - | decoderHuffmanTreeGroupInit(&s.insert_copy_hgroup, numCommandSymbols, numCommandSymbols, s.num_block_types[1]) | |||
| 2370 | - | decoderHuffmanTreeGroupInit(&s.distance_hgroup, num_distance_codes, max_distance_symbol, s.num_dist_htrees) | |||
| 2371 | - | ||||
| 2372 | - | if !allocation_success { | |||
| 2373 | - | return saveErrorCode(s, decoderErrorAllocTreeGroups) | |||
| 2374 | - | } | |||
| 2375 | - | ||||
| 2376 | - | s.loop_counter = 0 | |||
| 2377 | - | s.state = stateTreeGroup | |||
| 2378 | - | } | |||
| 2379 | - | fallthrough | |||
| 2380 | - | ||||
| 2381 | - | case stateTreeGroup: | |||
| 2382 | - | var hgroup *huffmanTreeGroup = nil | |||
| 2383 | - | switch s.loop_counter { | |||
| 2384 | - | case 0: | |||
| 2385 | - | hgroup = &s.literal_hgroup | |||
| 2386 | - | case 1: | |||
| 2387 | - | hgroup = &s.insert_copy_hgroup | |||
| 2388 | - | case 2: | |||
| 2389 | - | hgroup = &s.distance_hgroup | |||
| 2390 | - | default: | |||
| 2391 | - | return saveErrorCode(s, decoderErrorUnreachable) | |||
| 2392 | - | } | |||
| 2393 | - | ||||
| 2394 | - | result = huffmanTreeGroupDecode(hgroup, s) | |||
| 2395 | - | if result != decoderSuccess { | |||
| 2396 | - | break | |||
| 2397 | - | } | |||
| 2398 | - | s.loop_counter++ | |||
| 2399 | - | if s.loop_counter >= 3 { | |||
| 2400 | - | prepareLiteralDecoding(s) | |||
| 2401 | - | s.dist_context_map_slice = s.dist_context_map | |||
| 2402 | - | s.htree_command = []huffmanCode(s.insert_copy_hgroup.htrees[0]) | |||
| 2403 | - | if !ensureRingBuffer(s) { | |||
| 2404 | - | result = decoderErrorAllocRingBuffer2 | |||
| 2405 | - | break | |||
| 2406 | - | } | |||
| 2407 | - | ||||
| 2408 | - | s.state = stateCommandBegin | |||
| 2409 | - | } | |||
| 2410 | - | ||||
| 2411 | - | case stateCommandBegin, stateCommandInner, stateCommandPostDecodeLiterals, stateCommandPostWrapCopy: | |||
| 2412 | - | result = processCommands(s) | |||
| 2413 | - | ||||
| 2414 | - | if result == decoderNeedsMoreInput { | |||
| 2415 | - | result = safeProcessCommands(s) | |||
| 2416 | - | } | |||
| 2417 | - | ||||
| 2418 | - | case stateCommandInnerWrite, stateCommandPostWrite1, stateCommandPostWrite2: | |||
| 2419 | - | result = writeRingBuffer(s, available_out, next_out, nil, false) | |||
| 2420 | - | ||||
| 2421 | - | if result != decoderSuccess { | |||
| 2422 | - | break | |||
| 2423 | - | } | |||
| 2424 | - | ||||
| 2425 | - | wrapRingBuffer(s) | |||
| 2426 | - | if s.ringbuffer_size == 1<<s.window_bits { | |||
| 2427 | - | s.max_distance = s.max_backward_distance | |||
| 2428 | - | } | |||
| 2429 | - | ||||
| 2430 | - | if s.state == stateCommandPostWrite1 { | |||
| 2431 | - | if s.meta_block_remaining_len == 0 { | |||
| 2432 | - | /* Next metablock, if any. */ | |||
| 2433 | - | s.state = stateMetablockDone | |||
| 2434 | - | } else { | |||
| 2435 | - | s.state = stateCommandBegin | |||
| 2436 | - | } | |||
| 2437 | - | } else if s.state == stateCommandPostWrite2 { | |||
| 2438 | - | s.state = stateCommandPostWrapCopy /* BROTLI_STATE_COMMAND_INNER_WRITE */ | |||
| 2439 | - | } else { | |||
| 2440 | - | if s.loop_counter == 0 { | |||
| 2441 | - | if s.meta_block_remaining_len == 0 { | |||
| 2442 | - | s.state = stateMetablockDone | |||
| 2443 | - | } else { | |||
| 2444 | - | s.state = stateCommandPostDecodeLiterals | |||
| 2445 | - | } | |||
| 2446 | - | ||||
| 2447 | - | break | |||
| 2448 | - | } | |||
| 2449 | - | ||||
| 2450 | - | s.state = stateCommandInner | |||
| 2451 | - | } | |||
| 2452 | - | ||||
| 2453 | - | case stateMetablockDone: | |||
| 2454 | - | if s.meta_block_remaining_len < 0 { | |||
| 2455 | - | result = decoderErrorFormatBlockLength2 | |||
| 2456 | - | break | |||
| 2457 | - | } | |||
| 2458 | - | ||||
| 2459 | - | decoderStateCleanupAfterMetablock(s) | |||
| 2460 | - | if s.is_last_metablock == 0 { | |||
| 2461 | - | s.state = stateMetablockBegin | |||
| 2462 | - | break | |||
| 2463 | - | } | |||
| 2464 | - | ||||
| 2465 | - | if !bitReaderJumpToByteBoundary(br) { | |||
| 2466 | - | result = decoderErrorFormatPadding2 | |||
| 2467 | - | break | |||
| 2468 | - | } | |||
| 2469 | - | ||||
| 2470 | - | if s.buffer_length == 0 { | |||
| 2471 | - | bitReaderUnload(br) | |||
| 2472 | - | *available_in = br.input_len - br.byte_pos | |||
| 2473 | - | *next_in = br.input[br.byte_pos:] | |||
| 2474 | - | } | |||
| 2475 | - | ||||
| 2476 | - | s.state = stateDone | |||
| 2477 | - | fallthrough | |||
| 2478 | - | ||||
| 2479 | - | case stateDone: | |||
| 2480 | - | if s.ringbuffer != nil { | |||
| 2481 | - | result = writeRingBuffer(s, available_out, next_out, nil, true) | |||
| 2482 | - | if result != decoderSuccess { | |||
| 2483 | - | break | |||
| 2484 | - | } | |||
| 2485 | - | } | |||
| 2486 | - | ||||
| 2487 | - | return saveErrorCode(s, result) | |||
| 2488 | - | } | |||
| 2489 | - | } | |||
| 2490 | - | ||||
| 2491 | - | return saveErrorCode(s, result) | |||
| 2492 | - | } | |||
| 2493 | - | ||||
| 2494 | - | func decoderHasMoreOutput(s *Reader) bool { | |||
| 2495 | - | /* After unrecoverable error remaining output is considered nonsensical. */ | |||
| 2496 | - | if int(s.error_code) < 0 { | |||
| 2497 | - | return false | |||
| 2498 | - | } | |||
| 2499 | - | ||||
| 2500 | - | return s.ringbuffer != nil && unwrittenBytes(s, false) != 0 | |||
| 2501 | - | } | |||
| 2502 | - | ||||
| 2503 | - | func decoderGetErrorCode(s *Reader) int { | |||
| 2504 | - | return int(s.error_code) | |||
| 2505 | - | } | |||
| 2506 | - | ||||
| 2507 | - | func decoderErrorString(c int) string { | |||
| 2508 | - | switch c { | |||
| 2509 | - | case decoderNoError: | |||
| 2510 | - | return "NO_ERROR" | |||
| 2511 | - | case decoderSuccess: | |||
| 2512 | - | return "SUCCESS" | |||
| 2513 | - | case decoderNeedsMoreInput: | |||
| 2514 | - | return "NEEDS_MORE_INPUT" | |||
| 2515 | - | case decoderNeedsMoreOutput: | |||
| 2516 | - | return "NEEDS_MORE_OUTPUT" | |||
| 2517 | - | case decoderErrorFormatExuberantNibble: | |||
| 2518 | - | return "EXUBERANT_NIBBLE" | |||
| 2519 | - | case decoderErrorFormatReserved: | |||
| 2520 | - | return "RESERVED" | |||
| 2521 | - | case decoderErrorFormatExuberantMetaNibble: | |||
| 2522 | - | return "EXUBERANT_META_NIBBLE" | |||
| 2523 | - | case decoderErrorFormatSimpleHuffmanAlphabet: | |||
| 2524 | - | return "SIMPLE_HUFFMAN_ALPHABET" | |||
| 2525 | - | case decoderErrorFormatSimpleHuffmanSame: | |||
| 2526 | - | return "SIMPLE_HUFFMAN_SAME" | |||
| 2527 | - | case decoderErrorFormatClSpace: | |||
| 2528 | - | return "CL_SPACE" | |||
| 2529 | - | case decoderErrorFormatHuffmanSpace: | |||
| 2530 | - | return "HUFFMAN_SPACE" | |||
| 2531 | - | case decoderErrorFormatContextMapRepeat: | |||
| 2532 | - | return "CONTEXT_MAP_REPEAT" | |||
| 2533 | - | case decoderErrorFormatBlockLength1: | |||
| 2534 | - | return "BLOCK_LENGTH_1" | |||
| 2535 | - | case decoderErrorFormatBlockLength2: | |||
| 2536 | - | return "BLOCK_LENGTH_2" | |||
| 2537 | - | case decoderErrorFormatTransform: | |||
| 2538 | - | return "TRANSFORM" | |||
| 2539 | - | case decoderErrorFormatDictionary: | |||
| 2540 | - | return "DICTIONARY" | |||
| 2541 | - | case decoderErrorFormatWindowBits: | |||
| 2542 | - | return "WINDOW_BITS" | |||
| 2543 | - | case decoderErrorFormatPadding1: | |||
| 2544 | - | return "PADDING_1" | |||
| 2545 | - | case decoderErrorFormatPadding2: | |||
| 2546 | - | return "PADDING_2" | |||
| 2547 | - | case decoderErrorFormatDistance: | |||
| 2548 | - | return "DISTANCE" | |||
| 2549 | - | case decoderErrorDictionaryNotSet: | |||
| 2550 | - | return "DICTIONARY_NOT_SET" | |||
| 2551 | - | case decoderErrorInvalidArguments: | |||
| 2552 | - | return "INVALID_ARGUMENTS" | |||
| 2553 | - | case decoderErrorAllocContextModes: | |||
| 2554 | - | return "CONTEXT_MODES" | |||
| 2555 | - | case decoderErrorAllocTreeGroups: | |||
| 2556 | - | return "TREE_GROUPS" | |||
| 2557 | - | case decoderErrorAllocContextMap: | |||
| 2558 | - | return "CONTEXT_MAP" | |||
| 2559 | - | case decoderErrorAllocRingBuffer1: | |||
| 2560 | - | return "RING_BUFFER_1" | |||
| 2561 | - | case decoderErrorAllocRingBuffer2: | |||
| 2562 | - | return "RING_BUFFER_2" | |||
| 2563 | - | case decoderErrorAllocBlockTypeTrees: | |||
| 2564 | - | return "BLOCK_TYPE_TREES" | |||
| 2565 | - | case decoderErrorUnreachable: | |||
| 2566 | - | return "UNREACHABLE" | |||
| 2567 | - | default: | |||
| 2568 | - | return "INVALID" | |||
| 2569 | - | } | |||
| 2570 | - | } | |||
D vendor/github.com/andybalholm/brotli/dictionary.go +0 -122890 generated file: collapsed
D vendor/github.com/andybalholm/brotli/dictionary_hash.go +0 -32779 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encode.go +0 -1220 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder.go +0 -177 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder_dict.go +0 -22 generated file: collapsed
D vendor/github.com/andybalholm/brotli/encoder_fast.go +0 -197 generated file: collapsed
D vendor/github.com/andybalholm/brotli/entropy_encode.go +0 -592 generated file: collapsed
D vendor/github.com/andybalholm/brotli/entropy_encode_static.go +0 -4399 generated file: collapsed
D vendor/github.com/andybalholm/brotli/fast_log.go +0 -290 generated file: collapsed
D vendor/github.com/andybalholm/brotli/find_match_length.go +0 -45 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/LICENSE +0 -27 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/README.md +0 -2 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/gzip.go +0 -65 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/huffman_bit_writer.go +0 -517 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/huffman_code.go +0 -346 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/token.go +0 -80 generated file: collapsed
D vendor/github.com/andybalholm/brotli/flate/writer.go +0 -66 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h10.go +0 -287 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h5.go +0 -214 generated file: collapsed
D vendor/github.com/andybalholm/brotli/h6.go +0 -216 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash.go +0 -342 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_composite.go +0 -93 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_forgetful_chain.go +0 -252 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_longest_match_quickly.go +0 -214 generated file: collapsed
D vendor/github.com/andybalholm/brotli/hash_rolling.go +0 -168 generated file: collapsed
D vendor/github.com/andybalholm/brotli/histogram.go +0 -226 generated file: collapsed
D vendor/github.com/andybalholm/brotli/http.go +0 -189 generated file: collapsed
D vendor/github.com/andybalholm/brotli/huffman.go +0 -653 generated file: collapsed
D vendor/github.com/andybalholm/brotli/literal_cost.go +0 -182 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain1.go +0 -212 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain2.go +0 -248 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/bargain3.go +0 -278 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/emitter.go +0 -34 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/m0.go +0 -175 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/m4.go +0 -339 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/matchfinder.go +0 -103 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/pathfinder.go +0 -328 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/textencoder.go +0 -53 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/trio.go +0 -326 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zdfast.go +0 -258 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zfast.go +0 -206 generated file: collapsed
D vendor/github.com/andybalholm/brotli/matchfinder/zm.go +0 -301 generated file: collapsed
D vendor/github.com/andybalholm/brotli/memory.go +0 -66 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock.go +0 -574 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_command.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_distance.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/metablock_literal.go +0 -165 generated file: collapsed
D vendor/github.com/andybalholm/brotli/params.go +0 -37 generated file: collapsed
D vendor/github.com/andybalholm/brotli/platform.go +0 -103 generated file: collapsed
D vendor/github.com/andybalholm/brotli/prefix.go +0 -30 generated file: collapsed
D vendor/github.com/andybalholm/brotli/prefix_dec.go +0 -723 generated file: collapsed
D vendor/github.com/andybalholm/brotli/quality.go +0 -196 generated file: collapsed
D vendor/github.com/andybalholm/brotli/reader.go +0 -126 generated file: collapsed
D vendor/github.com/andybalholm/brotli/ringbuffer.go +0 -134 generated file: collapsed
D vendor/github.com/andybalholm/brotli/state.go +0 -313 generated file: collapsed
D vendor/github.com/andybalholm/brotli/static_dict.go +0 -662 generated file: collapsed
D vendor/github.com/andybalholm/brotli/static_dict_lut.go +0 -75094 generated file: collapsed
D vendor/github.com/andybalholm/brotli/symbol_list.go +0 -22 generated file: collapsed
D vendor/github.com/andybalholm/brotli/transform.go +0 -641 generated file: collapsed
D vendor/github.com/andybalholm/brotli/utf8_util.go +0 -70 generated file: collapsed
D vendor/github.com/andybalholm/brotli/util.go +0 -7 generated file: collapsed
D vendor/github.com/andybalholm/brotli/write_bits.go +0 -52 generated file: collapsed
D vendor/github.com/andybalholm/brotli/writer.go +0 -162 generated file: collapsed
D vendor/github.com/atotto/clipboard/.travis.yml +0 -22 generated file: collapsed
D vendor/github.com/atotto/clipboard/LICENSE +0 -27 generated file: collapsed
D vendor/github.com/atotto/clipboard/README.md +0 -48 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard.go +0 -20 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_darwin.go +0 -52 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_plan9.go +0 -42 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_unix.go +0 -149 generated file: collapsed
D vendor/github.com/atotto/clipboard/clipboard_windows.go +0 -157 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/README.md +0 -83 generated file: collapsed
D vendor/github.com/aymanbagabas/go-osc52/v2/osc52.go +0 -305 generated file: collapsed
D vendor/github.com/bnema/purego-cef/LICENSE +0 -21 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/bridge.go +0 -783 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_accessibility_handler_gen.go +0 -135 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_app_gen.go +0 -255 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_audio_handler_gen.go +0 -222 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_auth_callback_gen.go +0 -80 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_base_gen.go +0 -13 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_browser_gen.go +0 -1340 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_browser_process_handler_gen.go +0 -280 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_callback_gen.go +0 -173 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_client_gen.go +0 -691 generated file: collapsed
D vendor/github.com/bnema/purego-cef/cef/cef_command_handler_gen.go +0 -228 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_command_line_gen.go +0 -282 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_component_updater_gen.go +0 -323 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_context_menu_handler_gen.go +0 -633 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_cookie_gen.go +0 -430 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_crash_util_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_devtools_message_observer_gen.go +0 -219 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_dialog_handler_gen.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_display_handler_gen.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_dom_gen.go +0 -578 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_download_handler_gen.go +0 -308 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_download_item_gen.go +0 -255 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_drag_data_gen.go +0 -329 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_drag_handler_gen.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_file_util_gen.go +0 -74 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_find_handler_gen.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_focus_handler_gen.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_frame_gen.go +0 -284 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_frame_handler_gen.go +0 -214 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_i18n_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_image_gen.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_jsdialog_handler_gen.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_keyboard_handler_gen.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_life_span_handler_gen.go +0 -261 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_load_handler_gen.go +0 -198 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_media_router_gen.go +0 -771 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_menu_model_delegate_gen.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_menu_model_gen.go +0 -607 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_navigation_entry_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_origin_whitelist_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_parser_gen.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_path_util_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_permission_handler_gen.go +0 -303 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_preference_gen.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_print_handler_gen.go +0 -364 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_print_settings_gen.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_process_message_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_registration_gen.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_render_handler_gen.go +0 -562 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_render_process_handler_gen.go +0 -325 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_context_gen.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_context_handler_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_gen.go +0 -576 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_request_handler_gen.go +0 -490 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_gen.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_bundle_handler_gen.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_handler_gen.go +0 -392 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_resource_request_handler_gen.go +0 -469 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_response_filter_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_response_gen.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_scheme_gen.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_server_gen.go +0 -470 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_shared_memory_region_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_shared_process_message_builder_gen.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_ssl_info_gen.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_ssl_status_gen.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_stream_gen.go +0 -698 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_string_visitor_gen.go +0 -113 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_task_gen.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_task_manager_gen.go +0 -150 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_thread_gen.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_trace_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_color_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_component_gen.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_content_settings_gen.go +0 -155 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_gen.go +0 -1631 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_geometry_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_linux_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_osr_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_types_runtime_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_unresponsive_process_callback_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_urlrequest_gen.go +0 -363 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_v8_gen.go +0 -1825 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_values_gen.go +0 -1139 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_waitable_event_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_x509_certificate_gen.go +0 -300 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_xml_reader_gen.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/cef_zip_reader_gen.go +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/doc.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/init.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_app.go +0 -261 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser.go +0 -929 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_browser_process_handler.go +0 -345 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_client.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_context_menu_handler.go +0 -487 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_dialog_handler.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_display_handler.go +0 -743 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_focus_handler.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_frame.go +0 -1093 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_keyboard_handler.go +0 -169 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_life_span_handler.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_load_handler.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_process_message.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_client.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_raw_life_span_handler.go +0 -409 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_handler.go +0 -959 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_render_process_handler.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request.go +0 -1010 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_context.go +0 -1167 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_request_handler.go +0 -760 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/mocks/mock_response.go +0 -768 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/opaque_types.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/string_list.go +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_api_version_test__gen.go +0 -1391 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_test_helpers_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_test_server_gen.go +0 -282 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/test_cef_translator_test__gen.go +0 -1534 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/v8_helpers.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_box_layout_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_delegate_gen.go +0 -348 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_browser_view_gen.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_button_delegate_gen.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_button_gen.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_display_gen.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_fill_layout_gen.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_label_button_gen.go +0 -176 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_layout_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_delegate_gen.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_menu_button_gen.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_overlay_controller_gen.go +0 -224 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_panel_delegate_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_panel_gen.go +0 -181 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_scroll_view_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_delegate_gen.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_textfield_gen.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_view_delegate_gen.go +0 -362 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_view_gen.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_window_delegate_gen.go +0 -682 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/views_cef_window_gen.go +0 -436 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/cef/window_info_helpers.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/bridge.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_accessibility_handler_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_app_gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_audio_handler_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_auth_callback_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_base_gen.go +0 -77 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_gen.go +0 -1091 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_browser_process_handler_gen.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_callback_gen.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_client_gen.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_command_handler_gen.go +0 -80 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_command_line_gen.go +0 -255 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_component_updater_gen.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_context_menu_handler_gen.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_cookie_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_crash_util_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_devtools_message_observer_gen.go +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_dialog_handler_gen.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_display_handler_gen.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_dom_gen.go +0 -478 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_download_handler_gen.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_download_item_gen.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_data_gen.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_drag_handler_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_file_util_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_find_handler_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_focus_handler_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_gen.go +0 -303 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_frame_handler_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_i18n_util_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_image_gen.go +0 -164 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_jsdialog_handler_gen.go +0 -77 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_keyboard_handler_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_life_span_handler_gen.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_load_handler_gen.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_media_router_gen.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_delegate_gen.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_menu_model_gen.go +0 -637 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_navigation_entry_gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_origin_whitelist_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_parser_gen.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_path_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_permission_handler_gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_preference_gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_print_handler_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_print_settings_gen.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_process_message_gen.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_registration_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_render_handler_gen.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_render_process_handler_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_gen.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_context_handler_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_gen.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_request_handler_gen.go +0 -166 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_bundle_handler_gen.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_handler_gen.go +0 -126 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_resource_request_handler_gen.go +0 -148 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_response_filter_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_response_gen.go +0 -208 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_scheme_gen.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_server_gen.go +0 -257 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_memory_region_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_shared_process_message_builder_gen.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_info_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_ssl_status_gen.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_stream_gen.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_string_visitor_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_task_gen.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_task_manager_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_thread_gen.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_trace_gen.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_color_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_component_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_content_settings_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_gen.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_geometry_gen.go +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_linux_gen.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_osr_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_types_runtime_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_unresponsive_process_callback_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_urlrequest_gen.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_v8_gen.go +0 -1137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_values_gen.go +0 -1002 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_waitable_event_gen.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_x509_certificate_gen.go +0 -217 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_xml_reader_gen.go +0 -340 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/cef_zip_reader_gen.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/doc.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_darwin_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_default_gen.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_linux_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/register_platform_windows_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_api_version_test__gen.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_helpers_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_test_server_gen.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/test_cef_translator_test__gen.go +0 -967 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_box_layout_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_delegate_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_browser_view_gen.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_delegate_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_button_gen.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_display_gen.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_fill_layout_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_label_button_gen.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_layout_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_delegate_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_menu_button_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_overlay_controller_gen.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_delegate_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_panel_gen.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_scroll_view_gen.go +0 -102 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_delegate_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_textfield_gen.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_delegate_gen.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_view_gen.go +0 -589 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_delegate_gen.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/capi/views_cef_window_gen.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/cefapi/contract.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/engine.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/helpers.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/init.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/marshal.go +0 -146 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/core/refcount.go +0 -185 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/loader/loader.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_accessibility_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_app_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_audio_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_auth_callback_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_base_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_gen.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_browser_process_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_client_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_handler_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_command_line_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_component_updater_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_context_menu_handler_gen.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_cookie_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_devtools_message_observer_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dialog_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_display_handler_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_dom_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_handler_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_download_item_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_data_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_drag_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_find_handler_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_focus_handler_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_frame_handler_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_image_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_jsdialog_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_keyboard_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_life_span_handler_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_load_handler_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_media_router_gen.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_delegate_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_menu_model_gen.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_navigation_entry_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_permission_handler_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_preference_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_handler_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_print_settings_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_process_message_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_registration_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_handler_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_render_process_handler_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_gen.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_context_handler_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_request_handler_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_bundle_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_handler_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_resource_request_handler_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_filter_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_response_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_scheme_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_server_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_memory_region_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_shared_process_message_builder_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_info_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_ssl_status_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_stream_gen.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_string_visitor_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_task_manager_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_thread_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_trace_gen.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_color_gen.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_component_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_content_settings_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_gen.go +0 -256 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_geometry_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_linux_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_osr_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_types_runtime_gen.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_unresponsive_process_callback_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_urlrequest_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_v8_gen.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_values_gen.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_waitable_event_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_x509_certificate_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_xml_reader_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/cef_zip_reader_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/opaque_types.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_api_version_test__gen.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_test_server_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/test_cef_translator_test__gen.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_box_layout_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_delegate_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_browser_view_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_delegate_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_button_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_display_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_fill_layout_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_label_button_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_layout_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_delegate_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_menu_button_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_overlay_controller_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_delegate_gen.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_panel_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_scroll_view_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_delegate_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_textfield_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_delegate_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_view_gen.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_delegate_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/in/views_cef_window_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/capi.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_app_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_auth_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_browser_gen.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_command_line_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_component_updater_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_context_menu_handler_gen.go +0 -44 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_cookie_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_crash_util_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dialog_handler_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_dom_gen.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_handler_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_download_item_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_drag_data_gen.go +0 -44 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_file_util_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_frame_gen.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_i18n_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_image_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_jsdialog_handler_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_media_router_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_menu_model_gen.go +0 -73 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_navigation_entry_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_origin_whitelist_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_parser_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_path_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_permission_handler_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_preference_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_handler_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_print_settings_gen.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_message_gen.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_process_util_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_registration_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_context_gen.go +0 -42 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_gen.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_request_handler_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_bundle_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_resource_handler_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_response_gen.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_scheme_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_server_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_memory_region_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_shared_process_message_builder_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_info_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_ssl_status_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_stream_gen.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_gen.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_task_manager_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_thread_gen.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_trace_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_types_linux_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_unresponsive_process_callback_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_urlrequest_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_v8_gen.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_values_gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_waitable_event_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_x509_certificate_gen.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_xml_reader_gen.go +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/cef_zip_reader_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_api_version_test__gen.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_helpers_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_test_server_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/test_cef_translator_test__gen.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_box_layout_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_browser_view_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_button_gen.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_display_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_fill_layout_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_label_button_gen.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_layout_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_delegate_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_menu_button_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_overlay_controller_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_panel_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_scroll_view_gen.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_textfield_gen.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_view_gen.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef/internal/ports/out/views_cef_window_gen.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/.gitignore +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/Makefile +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/README.md +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/browser_settings.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/command_line.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/diagnostics.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/doc.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/handlers.go +0 -284 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/input.go +0 -277 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/command_line.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/window_info.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/cutil/cstring.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/format.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/modifier.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/attrs.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/display.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/extensions.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/importer.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/loader.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/egl/types.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/copy.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/loader.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gl/timer_query.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +0 -980 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/accelerated_renderer.go +0 -476 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/context.go +0 -172 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/gl.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/glib.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/input_bridge.go +0 -1037 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/main_thread.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/gtkgl/render_signal.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/internal/profile/recorder.go +0 -352 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/options.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/osr_backing_scale.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/profile.go +0 -50 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/refresh_rate.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/render_stack.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/size_observation.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/view.go +0 -1171 collapsed to keep the page light
D vendor/github.com/bnema/purego-cef2gtk/window_info.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-pipewire/internal/capi/adapters_gen.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/init_gen.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/loop_gen.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/loop_lock.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/register.go +0 -41 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/register_all.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_ops.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_params.go +0 -172 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/capi/stream_playback_gen.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/context.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/core.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/loop.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +0 -207 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/player_state.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +0 -173 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/registry.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/runtime.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/core/stream.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/loader/loader.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/.gitkeep +0 -0
no textual change.
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi.go +0 -5 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/capi_gen.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/init_gen.go +0 -9 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/loop_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_ops.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/internal/ports/out/stream_playback_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/context.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/core.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/interfaces.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/player.go +0 -218 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/registry.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/runtime.go +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego-pipewire/pipewire/stream.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/driver/driver.go +0 -390 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/driver/register.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/bridge.go +0 -1461 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/enums_gen.go +0 -863 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/functions_gen.go +0 -358 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/register_gen.go +0 -377 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/capi/variadic_gen.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/db.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/errors.go +0 -51 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +0 -194 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/core/stmt.go +0 -128 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/auth_gen.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/backup_gen.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/bind_gen.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/blob_gen.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/capi_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/column_gen.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/config_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/context_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/exec_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/func_gen.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/hook_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/lifecycle_gen.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/memory_gen.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/metadata_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/misc_gen.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/prepare_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/result_gen.go +0 -31 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/serialize_gen.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/str_gen.go +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/trace_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/value_gen.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/vfs_gen.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/vtab_gen.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/internal/ports/out/wal_gen.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego-sqlite/sqlite/sqlite_gen.go +0 -49 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/generated_symbols.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/loader.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/internal/libwebp/types.go +0 -164 collapsed to keep the page light
D vendor/github.com/bnema/purego-webp/libwebp/libwebp.go +0 -880 collapsed to keep the page light
D vendor/github.com/bnema/purego/.gitignore +0 -1 collapsed to keep the page light
D vendor/github.com/bnema/purego/LICENSE +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/purego/README.md +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_amd64.h +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_arm64.h +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/abi_loong64.h +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/cgo.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlerror.go +0 -17 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn.go +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_android.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_darwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_freebsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_linux.go +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_netbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_freebsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_linux.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_nocgo_netbsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_playground.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/purego/dlfcn_stubs.s +0 -22 collapsed to keep the page light
D vendor/github.com/bnema/purego/func.go +0 -677 collapsed to keep the page light
D vendor/github.com/bnema/purego/gen.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego/go_runtime.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego/hostlayout_go123.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego/hostlayout_nogo123.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/dlfcn_cgo_unix.go +0 -56 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/empty.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/cgo/syscall_cgo_unix.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_amd64.h +0 -99 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_arm64.h +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_loong64.h +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_ppc64x.h +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/abi_riscv64.h +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_386.s +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_amd64.s +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_arm.s +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_arm64.s +0 -36 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_loong64.s +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_ppc64le.s +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_riscv64.s +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/asm_s390x.s +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/callbacks.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/doc.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/fakecgo.go +0 -14 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/freebsd.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_darwin.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_freebsd.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_libinit.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_linux.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_netbsd.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_setenv.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/go_util.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/iscgo.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_darwin.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_linux.go +0 -20 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/libcgo_netbsd.go +0 -26 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/linux.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/netbsd.go +0 -23 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/setenv.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_386.s +0 -121 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_amd64.s +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm.s +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_arm64.s +0 -81 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_386.s +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_amd64.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_arm64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_loong64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_ppc64le.s +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_linux_riscv64.s +0 -60 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_loong64.s +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_ppc64le.s +0 -128 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/trampolines_riscv64.s +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_darwin.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_freebsd.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_linux.go +0 -158 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/zsymbols_netbsd.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_darwin.s +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_freebsd.s +0 -16 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_linux.s +0 -46 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_netbsd.s +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/fakecgo/ztrampolines_stubs.s +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/strings/strings.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/xreflect/reflect_go124.go +0 -15 collapsed to keep the page light
D vendor/github.com/bnema/purego/internal/xreflect/reflect_go125.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/purego/is_ios.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/purego/nocgo.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_386.go +0 -52 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_abi_helpers.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_amd64.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_arm.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_arm64.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_loong64.go +0 -216 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_ppc64le.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_riscv64.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/struct_s390x.go +0 -151 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_386.s +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_amd64.s +0 -170 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_arm.s +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_arm64.s +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_loong64.s +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_ppc64le.s +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_riscv64.s +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_s390x.s +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_386.s +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_arm.s +0 -89 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_arm64.s +0 -75 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_loong64.s +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_ppc64le.s +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_riscv64.s +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/purego/sys_unix_s390x.s +0 -109 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_32bit.go +0 -115 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_cgo_linux.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_notstackargs.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_stackargs.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_unix.go +0 -693 collapsed to keep the page light
D vendor/github.com/bnema/purego/syscall_windows.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_386.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_amd64.s +0 -2014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_arm.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_arm64.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_loong64.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_ppc64le.s +0 -4014 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_riscv64.s +0 -4051 collapsed to keep the page light
D vendor/github.com/bnema/purego/zcallback_s390x.s +0 -4015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/internal/core/core.go +0 -515 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +0 -2056 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +0 -2083 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +0 -80 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +0 -812 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +0 -1214 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +0 -313 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +0 -969 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +0 -493 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +0 -593 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +0 -704 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +0 -382 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +0 -1019 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +0 -523 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +0 -562 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +0 -568 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +0 -572 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +0 -399 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +0 -398 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +0 -871 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +0 -258 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +0 -605 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +0 -548 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +0 -816 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +0 -954 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +0 -1077 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +0 -300 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +0 -791 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +0 -1049 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +0 -815 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +0 -566 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +0 -1296 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +0 -39 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +0 -1218 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +0 -859 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +0 -1906 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +0 -999 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +0 -690 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +0 -520 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +0 -586 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +0 -672 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +0 -603 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +0 -715 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +0 -480 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +0 -441 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +0 -246 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +0 -561 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +0 -386 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +0 -1144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +0 -1118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +0 -889 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +0 -477 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +0 -971 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +0 -420 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +0 -519 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +0 -287 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +0 -802 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +0 -529 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +0 -970 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +0 -2327 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +0 -387 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +0 -717 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +0 -1196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +0 -938 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +0 -1890 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +0 -470 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +0 -547 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +0 -599 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +0 -480 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +0 -685 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +0 -945 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +0 -687 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/cairo/main.go +0 -947 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +0 -329 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +0 -245 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +0 -517 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +0 -279 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +0 -741 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +0 -244 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +0 -299 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +0 -625 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder_extra.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +0 -73 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +0 -896 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +0 -1449 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +0 -474 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +0 -424 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +0 -508 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +0 -113 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkkeysyms.go +0 -4904 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +0 -304 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +0 -460 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +0 -382 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +0 -575 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +0 -57 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +0 -214 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +0 -311 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +0 -190 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +0 -710 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +0 -716 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +0 -751 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +0 -853 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +0 -746 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-features.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +0 -549 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +0 -552 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +0 -1783 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gaction.go +0 -663 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +0 -852 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +0 -434 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +0 -2242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +0 -2213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +0 -715 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +0 -339 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +0 -325 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +0 -556 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +0 -314 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +0 -617 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +0 -327 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +0 -266 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +0 -349 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +0 -235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +0 -496 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +0 -674 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +0 -416 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +0 -330 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +0 -152 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +0 -1909 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +0 -182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +0 -291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +0 -542 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +0 -579 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +0 -753 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +0 -392 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +0 -274 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +0 -390 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +0 -719 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +0 -169 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +0 -1102 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +0 -311 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +0 -1459 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +0 -1041 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +0 -175 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfile.go +0 -7039 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +0 -768 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +0 -190 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +0 -1682 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +0 -513 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +0 -614 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gicon.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +0 -556 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +0 -262 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +0 -280 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +0 -869 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +0 -2410 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giostream.go +0 -723 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +0 -1144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +0 -348 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +0 -236 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +0 -411 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +0 -167 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +0 -610 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenuexporter.go +0 -10 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +0 -993 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmount.go +0 -1422 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +0 -1017 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +0 -336 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +0 -412 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +0 -1272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +0 -443 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +0 -305 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +0 -384 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +0 -136 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +0 -315 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +0 -352 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -301 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +0 -298 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +0 -1053 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gresource.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +0 -1862 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +0 -676 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +0 -433 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +0 -489 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +0 -618 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +0 -446 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +0 -2007 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +0 -249 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +0 -253 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +0 -955 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +0 -298 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +0 -397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +0 -619 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +0 -406 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +0 -27 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +0 -633 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +0 -412 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtask.go +0 -1352 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +0 -228 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +0 -291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -63 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +0 -309 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +0 -499 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +0 -764 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +0 -319 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +0 -836 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +0 -886 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +0 -119 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +0 -518 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +0 -90 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +0 -211 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +0 -370 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +0 -698 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +0 -1140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +0 -1182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gio/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/garray.go +0 -817 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +0 -448 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +0 -404 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +0 -91 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +0 -104 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +0 -186 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +0 -958 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcache.go +0 -118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +0 -222 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +0 -457 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +0 -286 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdate.go +0 -850 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +0 -1084 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gdir.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/genviron.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gerror.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +0 -806 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghash.go +0 -742 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +0 -205 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghook.go +0 -260 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +0 -83 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +0 -1139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +0 -1174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glibconfig.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/glist.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmacros.go +0 -30 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmain.go +0 -2568 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +0 -178 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +0 -788 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmem.go +0 -532 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +0 -1030 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gnode.go +0 -439 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/goption.go +0 -666 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +0 -205 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +0 -24 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +0 -116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +0 -35 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gquark.go +0 -153 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +0 -503 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grand.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +0 -200 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gregex.go +0 -1625 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/grel.go +0 -204 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +0 -483 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +0 -603 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gshell.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gslice.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gslist.go +0 -47 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +0 -607 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +0 -381 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +0 -1164 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstring.go +0 -622 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +0 -176 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +0 -1491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gthread.go +0 -2487 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +0 -278 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +0 -378 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtree.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +0 -1703 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/guri.go +0 -1112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gutils.go +0 -766 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/guuid.go +0 -38 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +0 -3134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +0 -730 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gversion.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/gversionmacros.go +0 -18 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/main.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_other.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_sysv.go +0 -29 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/glib/more_windows.go +0 -6 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/gmoduleconf.go +0 -12 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gmodule/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +0 -142 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +0 -58 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +0 -549 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/genums.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +0 -2267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +0 -935 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +0 -1291 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +0 -839 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +0 -43 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +0 -1702 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtypemodule.go +0 -380 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gtypeplugin.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvalue.go +0 -951 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluearray.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluecollector.go +0 -11 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/gvaluetypes.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/main.go +0 -37 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/more.go +0 -160 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gobject/types/types.go +0 -3 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-box.go +0 -408 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-config.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-euler.go +0 -408 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-frustum.go +0 -161 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-macros.go +0 -8 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-matrix.go +0 -885 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-plane.go +0 -220 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-point.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-point3d.go +0 -235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-quad.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-quaternion.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-ray.go +0 -274 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-rect.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-size.go +0 -137 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-sphere.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-triangle.go +0 -244 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-types.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec2.go +0 -331 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec3.go +0 -417 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec4.go +0 -431 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskblendnode.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskblurnode.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskbordernode.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskbroadwayrenderer.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcaironode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcairorenderer.go +0 -87 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskclipnode.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcolormatrixnode.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcolornode.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfer.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfernode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcompositenode.go +0 -112 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskconicgradientnode.go +0 -123 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcontainernode.go +0 -89 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcopynode.go +0 -79 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskcrossfadenode.go +0 -105 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskdebugnode.go +0 -91 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskenums.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskfillnode.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglrenderer.go +0 -127 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglshader.go +0 -682 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskglshadernode.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskinsetshadownode.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskisolationnode.go +0 -95 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsklineargradientnode.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskmasknode.go +0 -109 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskopacitynode.go +0 -88 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskoutsetshadownode.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpastenode.go +0 -69 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpath.go +0 -118 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskpathpoint.go +0 -189 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskradialgradientnode.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrenderer.go +0 -227 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrendernode.go +0 -338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrenderreplay.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskrepeatnode.go +0 -94 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskroundedclipnode.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskroundedrect.go +0 -191 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskshadownode.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskstroke.go +0 -19 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskstrokenode.go +0 -115 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsksubsurfacenode.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktextnode.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktexturenode.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktexturescalenode.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktransform.go +0 -25 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktransformnode.go +0 -93 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gsktypes.go +0 -2171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gsk/gskvulkanrenderer.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaboutdialog.go +0 -1303 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccelgroup.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessible.go +0 -857 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblehypertext.go +0 -484 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessiblerange.go +0 -111 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaccessibletext.go +0 -579 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkactionable.go +0 -361 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkactionbar.go +0 -460 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkadjustment.go +0 -604 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkalertdialog.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooser.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserbutton.go +0 -656 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserdialog.go +0 -551 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkappchooserwidget.go +0 -681 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkapplication.go +0 -1023 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkapplicationwindow.go +0 -944 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkaspectframe.go +0 -517 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkassistant.go +0 -1046 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkatcontext.go +0 -140 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbinlayout.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbitset.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbookmarklist.go +0 -318 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkboolfilter.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkborder.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbox.go +0 -592 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkboxlayout.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuildable.go +0 -717 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilder.go +0 -1015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderlistitemfactory.go +0 -206 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbuilderscope.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkbutton.go +0 -910 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcalendar.go +0 -836 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellarea.go +0 -1892 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareabox.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellareacontext.go +0 -431 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcelleditable.go +0 -226 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcelllayout.go +0 -649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderer.go +0 -1060 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendereraccel.go +0 -168 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderercombo.go +0 -163 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererpixbuf.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererprogress.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspin.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrendererspinner.go +0 -114 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertext.go +0 -764 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellrenderertoggle.go +0 -224 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcellview.go +0 -691 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterbox.go +0 -560 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcenterlayout.go +0 -268 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcheckbutton.go +0 -872 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorbutton.go +0 -565 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooser.go +0 -317 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserdialog.go +0 -510 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorchooserwidget.go +0 -415 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialog.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolordialogbutton.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolorutils.go +0 -33 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnview.go +0 -935 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcell.go +0 -213 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewcolumn.go +0 -472 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewrow.go +0 -337 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcolumnviewsorter.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcombobox.go +0 -1338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcomboboxtext.go +0 -649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraint.go +0 -362 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintguide.go +0 -316 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkconstraintlayout.go +0 -552 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcssenums.go +0 -40 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsserror.go +0 -32 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsslocation.go +0 -34 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcssprovider.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcsssection.go +0 -201 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomfilter.go +0 -108 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomlayout.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkcustomsorter.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdebug.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdialog.go +0 -1015 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdialogerror.go +0 -48 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdirectorylist.go +0 -415 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdragicon.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdragsource.go +0 -384 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdrawingarea.go +0 -598 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdropcontrollermotion.go +0 -227 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdropdown.go +0 -757 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptarget.go +0 -536 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkdroptargetasync.go +0 -340 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeditable.go +0 -1116 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeditablelabel.go +0 -686 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkemojichooser.go +0 -463 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentry.go +0 -2296 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentrybuffer.go +0 -665 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkentrycompletion.go +0 -772 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkenums.go +0 -2235 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontroller.go +0 -263 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerfocus.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerkey.go +0 -234 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerlegacy.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollermotion.go +0 -204 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkeventcontrollerscroll.go +0 -281 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkexpander.go +0 -730 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkexpression.go +0 -975 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooser.go +0 -711 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserdialog.go +0 -934 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechoosernative.go +0 -662 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilechooserwidget.go +0 -1084 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfiledialog.go +0 -714 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilefilter.go +0 -324 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilelauncher.go +0 -249 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilter.go +0 -485 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfilterlistmodel.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfixed.go +0 -447 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfixedlayout.go +0 -196 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkflattenlistmodel.go +0 -251 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkflowbox.go +0 -1649 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontbutton.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooser.go +0 -773 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserdialog.go +0 -643 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontchooserwidget.go +0 -532 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialog.go +0 -411 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkfontdialogbutton.go +0 -712 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkframe.go +0 -559 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesture.go +0 -650 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureclick.go +0 -188 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturedrag.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturelongpress.go +0 -180 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturepan.go +0 -134 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturerotate.go +0 -120 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturesingle.go +0 -229 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturestylus.go +0 -292 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgestureswipe.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgesturezoom.go +0 -122 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkglarea.go +0 -1007 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgraphicsoffload.go +0 -491 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgrid.go +0 -789 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgridlayout.go +0 -494 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkgridview.go +0 -759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkheaderbar.go +0 -635 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkiconpaintable.go +0 -349 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkicontheme.go +0 -535 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkiconview.go +0 -1817 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimage.go +0 -879 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontext.go +0 -1256 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimcontextsimple.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimmodule.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkimmulticontext.go +0 -229 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkinfobar.go +0 -705 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkinscription.go +0 -881 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklabel.go +0 -1759 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutchild.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklayoutmanager.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklevelbar.go +0 -714 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklinkbutton.go +0 -583 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistbase.go +0 -454 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistbox.go +0 -1802 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistheader.go +0 -181 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistitem.go +0 -383 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistitemfactory.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkliststore.go +0 -945 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklistview.go +0 -815 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtklockbutton.go +0 -571 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmain.go +0 -183 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmaplistmodel.go +0 -312 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediacontrols.go +0 -377 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediafile.go +0 -560 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmediastream.go +0 -1173 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmenubutton.go +0 -917 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmessagedialog.go +0 -751 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmountoperation.go +0 -286 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultifilter.go +0 -518 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultiselection.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkmultisorter.go +0 -216 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknative.go +0 -185 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknativedialog.go +0 -474 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknoselection.go +0 -356 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknotebook.go +0 -1572 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtknumericsorter.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkorientable.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlay.go +0 -489 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkoverlaylayout.go +0 -207 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpadcontroller.go +0 -223 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetup.go +0 -454 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpagesetupunixdialog.go +0 -497 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpaned.go +0 -930 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpapersize.go +0 -375 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentry.go +0 -756 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpasswordentrybuffer.go +0 -82 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpicture.go +0 -835 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopover.go +0 -931 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopoverbin.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenu.go +0 -627 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkpopovermenubar.go +0 -407 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintcontext.go +0 -272 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintdialog.go +0 -488 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprinter.go +0 -564 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintjob.go +0 -486 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperation.go +0 -1921 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintoperationpreview.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintsettings.go +0 -1024 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprintunixdialog.go +0 -756 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkprogressbar.go +0 -659 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrange.go +0 -968 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrecentmanager.go +0 -913 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrender.go +0 -171 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkrevealer.go +0 -539 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkroot.go +0 -144 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscale.go +0 -736 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscalebutton.go +0 -726 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollable.go +0 -266 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrollbar.go +0 -406 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkscrolledwindow.go +0 -1169 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksearchbar.go +0 -534 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksearchentry.go +0 -970 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksectionmodel.go +0 -156 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionfiltermodel.go +0 -208 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkselectionmodel.go +0 -606 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkseparator.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksettings.go +0 -1332 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcut.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutaction.go +0 -640 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutcontroller.go +0 -330 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutlabel.go +0 -419 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutmanager.go +0 -135 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsgroup.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutssection.go +0 -510 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutsshortcut.go +0 -540 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcutswindow.go +0 -597 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshortcuttrigger.go +0 -605 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkshow.go +0 -53 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksignallistitemfactory.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksingleselection.go +0 -505 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksizegroup.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksizerequest.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkslicelistmodel.go +0 -320 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksnapshot.go +0 -864 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksorter.go +0 -482 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksortlistmodel.go +0 -401 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkspinbutton.go +0 -1420 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkspinner.go +0 -397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstack.go +0 -1398 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstacksidebar.go +0 -371 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstackswitcher.go +0 -394 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstatusbar.go +0 -464 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringfilter.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringlist.go +0 -396 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstringsorter.go +0 -199 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstylecontext.go +0 -521 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkstyleprovider.go +0 -76 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksvg.go +0 -877 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkswitch.go +0 -598 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtksymbolicpaintable.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktestatcontext.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktestutils.go +0 -65 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktext.go +0 -1750 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextbuffer.go +0 -2305 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextchild.go +0 -237 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextiter.go +0 -1468 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextmark.go +0 -252 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktexttag.go +0 -1574 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktexttagtable.go +0 -238 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktextview.go +0 -2855 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktogglebutton.go +0 -667 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktooltip.go +0 -165 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreednd.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeexpander.go +0 -611 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistmodel.go +0 -593 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreelistrowsorter.go +0 -125 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodel.go +0 -1898 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelfilter.go +0 -741 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreemodelsort.go +0 -688 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeselection.go +0 -334 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreesortable.go +0 -379 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreestore.go +0 -899 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeview.go +0 -2734 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktreeviewcolumn.go +0 -1028 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtktypes.go +0 -534 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkurilauncher.go +0 -174 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkversion.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkvideo.go +0 -630 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkviewport.go +0 -504 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkvolumebutton.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwidget.go +0 -5777 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwidgetpaintable.go +0 -258 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindow.go +0 -2182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowcontrols.go +0 -551 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowgroup.go +0 -231 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/gtkwindowhandle.go +0 -383 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/gtk/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCClass.go +0 -519 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCContext.go +0 -414 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCException.go +0 -252 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCOptions.go +0 -234 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCValue.go +0 -1092 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVersion.go +0 -72 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCVirtualMachine.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/javascriptcore/JSCWeakValue.go +0 -123 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/layershell/gtk4-layer-shell.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/main.go +0 -21 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-attributes.go +0 -1850 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-bidi-type.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-break.go +0 -139 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-color.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-context.go +0 -430 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-coverage.go +0 -202 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-direction.go +0 -59 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-features.go +0 -13 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-font.go +0 -2354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontmap.go +0 -573 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontset-simple.go +0 -102 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-fontset.go +0 -366 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-glyph-item.go +0 -307 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-glyph.go +0 -440 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-gravity.go +0 -143 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-item.go +0 -253 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-language.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-layout.go +0 -1847 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-markup.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-matrix.go +0 -248 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-renderer.go +0 -789 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-script.go +0 -419 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-tabs.go +0 -283 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-types.go +0 -246 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/pango/pango-utils.go +0 -302 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-basic.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-digest.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-basic.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain-digest.go +0 -155 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-domain.go +0 -402 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-manager.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-negotiate.go +0 -64 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth-ntlm.go +0 -45 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-auth.go +0 -540 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cache.go +0 -242 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-content-decoder.go +0 -86 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-content-sniffer.go +0 -101 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-db.go +0 -110 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar-text.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie-jar.go +0 -467 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-cookie.go +0 -162 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-date-utils.go +0 -67 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-form.go +0 -146 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-headers.go +0 -250 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer-db.go +0 -107 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-enforcer.go +0 -308 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-hsts-policy.go +0 -7 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-logger.go +0 -265 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message-body.go +0 -285 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message-headers.go +0 -642 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-message.go +0 -1445 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-multipart-input-stream.go +0 -254 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-multipart.go +0 -161 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-server-message.go +0 -700 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-server.go +0 -1002 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-session-feature.go +0 -68 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-session.go +0 -1397 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-status.go +0 -193 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-tld.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-types.go +0 -854 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-uri-utils.go +0 -96 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-version.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-connection.go +0 -636 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-deflate.go +0 -66 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension-manager.go +0 -70 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket-extension.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/soup/soup-websocket.go +0 -264 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitApplicationInfo.go +0 -133 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitAuthenticationRequest.go +0 -343 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitAutomationSession.go +0 -212 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardList.go +0 -243 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitBackForwardListItem.go +0 -106 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitClipboardPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitColorChooserRequest.go +0 -182 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenu.go +0 -344 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuActions.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitContextMenuItem.go +0 -276 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitCookieManager.go +0 -347 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitCredential.go +0 -187 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitDeviceInfoPermissionRequest.go +0 -85 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitDownload.go +0 -429 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditingCommands.go +0 -61 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitEditorState.go +0 -193 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitError.go +0 -328 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFaviconDatabase.go +0 -195 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFeature.go +0 -326 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFileChooserRequest.go +0 -219 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFindController.go +0 -351 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitFormSubmissionRequest.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationManager.go +0 -281 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitGeolocationPermissionRequest.go +0 -100 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitHitTestResult.go +0 -354 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitImage.go +0 -267 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitInputMethodContext.go +0 -1260 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitMediaKeySystemPermissionRequest.go +0 -97 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitMemoryPressureSettings.go +0 -215 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationAction.go +0 -183 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNavigationPolicyDecision.go +0 -92 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkProxySettings.go +0 -147 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNetworkSession.go +0 -423 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotification.go +0 -210 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitNotificationPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenu.go +0 -184 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitOptionMenuItem.go +0 -129 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionRequest.go +0 -149 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPermissionStateQuery.go +0 -131 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPointerLockPermissionRequest.go +0 -84 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPolicyDecision.go +0 -341 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitPrintOperation.go +0 -273 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitResponsePolicyDecision.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitScriptDialog.go +0 -177 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityManager.go +0 -218 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSecurityOrigin.go +0 -163 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitSettings.go +0 -2622 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIRequest.go +0 -148 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIResponse.go +0 -194 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeRequest.go +0 -197 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURISchemeResponse.go +0 -141 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitURIUtilities.go +0 -28 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContent.go +0 -323 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentFilterStore.go +0 -289 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserContentManager.go +0 -432 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMediaPermissionRequest.go +0 -130 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitUserMessage.go +0 -230 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitVersion.go +0 -78 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebContext.go +0 -650 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtension.go +0 -617 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebExtensionMatchPattern.go +0 -264 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebInspector.go +0 -388 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebResource.go +0 -280 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebView.go +0 -4734 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewBase.go +0 -444 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewGtk4.go +0 -55 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebViewSessionState.go +0 -98 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteData.go +0 -124 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataAccessPermissionRequest.go +0 -103 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsiteDataManager.go +0 -545 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWebsitePolicies.go +0 -138 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitWindowProperties.go +0 -338 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/WebKitXRPermissionRequest.go +0 -241 collapsed to keep the page light
D vendor/github.com/bnema/puregotk/v4/webkit/more.go +0 -234 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/.gitignore +0 -25 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/LICENSE +0 -20 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/README.md +0 -30 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/backoff.go +0 -66 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/context.go +0 -62 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/exponential.go +0 -216 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/retry.go +0 -146 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/ticker.go +0 -97 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/timer.go +0 -35 collapsed to keep the page light
D vendor/github.com/cenkalti/backoff/v4/tries.go +0 -38 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/cursor/cursor.go +0 -221 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/help/help.go +0 -240 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/key/key.go +0 -140 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/README.md +0 -71 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/defaultitem.go +0 -229 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/keys.go +0 -97 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/list.go +0 -1330 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/list/style.go +0 -99 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/paginator/paginator.go +0 -214 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/runeutil/runeutil.go +0 -102 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/spinner/spinner.go +0 -224 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/table/table.go +0 -450 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/textinput/textinput.go +0 -890 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/viewport/keymap.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbles/viewport/viewport.go +0 -544 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.gitattributes +0 -1 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.gitignore +0 -23 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.golangci.yml +0 -44 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/.goreleaser.yml +0 -5 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/README.md +0 -400 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/Taskfile.yaml +0 -14 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/commands.go +0 -222 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/exec.go +0 -133 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/focus.go +0 -9 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/inputreader_other.go +0 -19 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/inputreader_windows.go +0 -129 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key.go +0 -715 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_other.go +0 -13 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_sequences.go +0 -130 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/key_windows.go +0 -441 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/logging.go +0 -53 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/mouse.go +0 -308 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/nil_renderer.go +0 -29 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/options.go +0 -252 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/renderer.go +0 -88 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/screen.go +0 -248 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/signals_unix.go +0 -33 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/signals_windows.go +0 -10 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/standard_renderer.go +0 -790 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tea.go +0 -941 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tea_init.go +0 -22 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty.go +0 -141 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty_unix.go +0 -49 collapsed to keep the page light
D vendor/github.com/charmbracelet/bubbletea/tty_windows.go +0 -68 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/.golangci.yml +0 -47 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/.goreleaser.yml +0 -6 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/README.md +0 -109 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/doc.go +0 -4 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env.go +0 -294 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env_other.go +0 -8 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/env_windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/profile.go +0 -108 collapsed to keep the page light
D vendor/github.com/charmbracelet/colorprofile/writer.go +0 -171 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.golangci.yml +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/.goreleaser.yml +0 -5 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/README.md +0 -815 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/Taskfile.yaml +0 -19 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/align.go +0 -83 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ansi_unix.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ansi_windows.go +0 -22 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/borders.go +0 -490 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/color.go +0 -172 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/get.go +0 -556 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/join.go +0 -175 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/position.go +0 -154 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/ranges.go +0 -48 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/renderer.go +0 -181 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/runes.go +0 -43 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/set.go +0 -799 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/size.go +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/style.go +0 -588 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/unset.go +0 -331 collapsed to keep the page light
D vendor/github.com/charmbracelet/lipgloss/whitespace.go +0 -83 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ansi.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ascii.go +0 -8 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/background.go +0 -178 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/c0.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/c1.go +0 -72 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/charset.go +0 -55 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/clipboard.go +0 -75 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/color.go +0 -784 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/ctrl.go +0 -156 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/cursor.go +0 -637 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/cwd.go +0 -26 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/doc.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/finalterm.go +0 -67 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/focus.go +0 -9 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/graphics.go +0 -62 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/hyperlink.go +0 -28 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/inband.go +0 -24 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/iterm2.go +0 -18 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/keypad.go +0 -28 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/kitty.go +0 -90 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/method.go +0 -196 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mode.go +0 -690 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mode_deprecated.go +0 -495 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/modes.go +0 -65 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/mouse.go +0 -172 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/notification.go +0 -32 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/palette.go +0 -34 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser.go +0 -417 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/const.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/seq.go +0 -136 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser/transition_table.go +0 -273 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_decode.go +0 -525 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_handler.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/parser_sync.go +0 -29 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/passthrough.go +0 -60 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/paste.go +0 -7 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/progress.go +0 -49 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/reset.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/screen.go +0 -410 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/sgr.go +0 -79 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/status.go +0 -168 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/style.go +0 -819 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/termcap.go +0 -41 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/title.go +0 -48 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/truncate.go +0 -290 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/urxvt.go +0 -17 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/util.go +0 -92 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/width.go +0 -107 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/winop.go +0 -59 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/wrap.go +0 -472 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/ansi/xterm.go +0 -138 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/buffer.go +0 -474 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/cell.go +0 -487 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/errors.go +0 -6 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/geom.go +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/hardscroll.go +0 -273 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/hashmap.go +0 -301 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/link.go +0 -14 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/pen.go +0 -92 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/screen.go +0 -1514 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/sequence.go +0 -131 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/style.go +0 -31 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/tabstop.go +0 -137 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/utils.go +0 -24 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/wrap.go +0 -191 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/cellbuf/writer.go +0 -340 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term.go +0 -51 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_other.go +0 -39 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_plan9.go +0 -118 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix.go +0 -96 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix_bsd.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_unix_other.go +0 -11 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/term_windows.go +0 -87 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/terminal.go +0 -12 collapsed to keep the page light
D vendor/github.com/charmbracelet/x/term/util.go +0 -47 collapsed to keep the page light
D vendor/github.com/cli/browser/LICENSE +0 -23 collapsed to keep the page light
D vendor/github.com/cli/browser/README.md +0 -20 collapsed to keep the page light
D vendor/github.com/cli/browser/browser.go +0 -57 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_darwin.go +0 -5 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_freebsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_linux.go +0 -21 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_netbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_openbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_unsupported.go +0 -12 collapsed to keep the page light
D vendor/github.com/cli/browser/browser_windows.go +0 -7 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/.gitignore +0 -3 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/AGENTS.md +0 -51 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/CHANGELOG.md +0 -129 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/README.md +0 -190 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/gen.go +0 -3 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/graphemes.go +0 -73 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/options.go +0 -30 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/trie.go +0 -1699 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/truncate.go +0 -149 collapsed to keep the page light
D vendor/github.com/clipperhouse/displaywidth/width.go +0 -239 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/README.md +0 -120 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi.go +0 -138 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/ansi8.go +0 -79 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/iterator.go +0 -144 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/reader.go +0 -25 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/splitfunc.go +0 -205 collapsed to keep the page light
D vendor/github.com/clipperhouse/uax29/v2/graphemes/trie.go +0 -1717 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md +0 -21 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/debug.go +0 -62 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go +0 -24 collapsed to keep the page light
D vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go +0 -416 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/LICENSE +0 -15 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/bypass.go +0 -145 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/bypasssafe.go +0 -38 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/common.go +0 -341 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/config.go +0 -306 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/doc.go +0 -211 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/dump.go +0 -509 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/format.go +0 -419 collapsed to keep the page light
D vendor/github.com/davecgh/go-spew/spew/spew.go +0 -148 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/.golangci.yml +0 -24 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/README.md +0 -2 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/keycodes.go +0 -205 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/mode.go +0 -82 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/read.go +0 -154 collapsed to keep the page light
D vendor/github.com/erikgeiser/coninput/records.go +0 -486 collapsed to keep the page light
D vendor/github.com/fatih/color/LICENSE.md +0 -20 collapsed to keep the page light
D vendor/github.com/fatih/color/README.md +0 -189 collapsed to keep the page light
D vendor/github.com/fatih/color/color.go +0 -733 collapsed to keep the page light
D vendor/github.com/fatih/color/color_windows.go +0 -22 collapsed to keep the page light
D vendor/github.com/fatih/color/doc.go +0 -134 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/.gitignore +0 -10 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/.mailmap +0 -2 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/CHANGELOG.md +0 -651 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/CONTRIBUTING.md +0 -147 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/LICENSE +0 -25 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/README.md +0 -214 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_fen.go +0 -469 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_inotify.go +0 -597 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_kqueue.go +0 -735 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_other.go +0 -22 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/backend_windows.go +0 -702 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/fsnotify.go +0 -526 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/darwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_darwin.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_dragonfly.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.go +0 -32 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_linux.go +0 -56 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.go +0 -15 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.go +0 -16 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_solaris.go +0 -45 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/debug_windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/freebsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/internal.go +0 -2 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/unix.go +0 -20 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/unix2.go +0 -25 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/internal/windows.go +0 -40 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/shared.go +0 -64 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/staticcheck.conf +0 -3 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/system_bsd.go +0 -7 collapsed to keep the page light
D vendor/github.com/fsnotify/fsnotify/system_darwin.go +0 -8 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.editorconfig +0 -24 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.envrc +0 -7 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.gitignore +0 -10 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/.golangci.yaml +0 -48 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/CHANGELOG.md +0 -104 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/README.md +0 -81 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/decode_hooks.go +0 -714 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.lock +0 -103 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.nix +0 -14 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/devenv.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/errors.go +0 -244 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/errors.go +0 -11 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/join.go +0 -9 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/internal/errors/join_go1_19.go +0 -61 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/mapstructure.go +0 -1948 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/reflect_go1_19.go +0 -44 collapsed to keep the page light
D vendor/github.com/go-viper/mapstructure/v2/reflect_go1_20.go +0 -10 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/.cirrus.yml +0 -11 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/.golangci.yml +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/CONTRIBUTING.md +0 -50 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/LICENSE +0 -25 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/MAINTAINERS +0 -3 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/README.md +0 -47 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/SECURITY.md +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth.go +0 -257 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_anonymous.go +0 -16 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_default_other.go +0 -7 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_default_windows.go +0 -5 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_external.go +0 -26 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/auth_sha1_windows.go +0 -109 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/call.go +0 -66 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn.go +0 -1009 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_darwin.go +0 -36 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_other.go +0 -83 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_unix.go +0 -40 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/conn_windows.go +0 -13 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/dbus.go +0 -427 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/decoder.go +0 -376 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/default_handler.go +0 -338 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/doc.go +0 -70 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/encoder.go +0 -235 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/escape.go +0 -84 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/export.go +0 -484 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/match.go +0 -89 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/message.go +0 -393 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/object.go +0 -181 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sequence.go +0 -24 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sequential_handler.go +0 -125 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/server_interfaces.go +0 -107 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/sig.go +0 -298 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_darwin.go +0 -6 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_generic.go +0 -52 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_nonce_tcp.go +0 -41 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_tcp.go +0 -41 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unix.go +0 -291 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_dragonfly.go +0 -95 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_freebsd.go +0 -94 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_linux.go +0 -25 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_netbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_unixcred_openbsd.go +0 -14 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/transport_zos.go +0 -6 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant.go +0 -169 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant_lexer.go +0 -284 collapsed to keep the page light
D vendor/github.com/godbus/dbus/v5/variant_parser.go +0 -815 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/LICENSE +0 -201 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/README.md +0 -23 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/trap_others.go +0 -16 collapsed to keep the page light
D vendor/github.com/inconshreveable/mousetrap/trap_windows.go +0 -42 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/.gitignore +0 -101 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/CHANGELOG.md +0 -72 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/LICENSE +0 -7 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/README.md +0 -490 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/colorgens.go +0 -67 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/colors.go +0 -1156 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go +0 -29 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hexcolor.go +0 -91 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hsluv-snapshot-rev4.json +0 -1 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/hsluv.go +0 -208 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/rand.go +0 -22 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go +0 -192 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/sort.go +0 -191 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go +0 -29 collapsed to keep the page light
D vendor/github.com/lucasb-eyer/go-colorful/widegamut.go +0 -290 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/README.md +0 -48 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/colorable_others.go +0 -38 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/colorable_windows.go +0 -1047 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/go.test.sh +0 -12 collapsed to keep the page light
D vendor/github.com/mattn/go-colorable/noncolorable.go +0 -57 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/LICENSE +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/README.md +0 -50 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/doc.go +0 -2 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/go.test.sh +0 -12 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_bsd.go +0 -20 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_others.go +0 -17 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_plan9.go +0 -23 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_solaris.go +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_tcgets.go +0 -20 collapsed to keep the page light
D vendor/github.com/mattn/go-isatty/isatty_windows.go +0 -136 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/README.md +0 -23 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader.go +0 -19 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader_unix.go +0 -11 collapsed to keep the page light
D vendor/github.com/mattn/go-localereader/localereader_windows.go +0 -85 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/README.md +0 -27 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/benchstat.txt +0 -43 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/new.txt +0 -54 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/old.txt +0 -54 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth.go +0 -420 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_appengine.go +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_js.go +0 -9 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_posix.go +0 -81 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_table.go +0 -488 collapsed to keep the page light
D vendor/github.com/mattn/go-runewidth/runewidth_windows.go +0 -34 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/LICENSE.txt +0 -24 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/README.md +0 -85 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/env.go +0 -53 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/interpolate.go +0 -213 collapsed to keep the page light
D vendor/github.com/mfridman/interpolate/parser.go +0 -281 collapsed to keep the page light
D vendor/github.com/muesli/ansi/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/ansi/.golangci.yml +0 -27 collapsed to keep the page light
D vendor/github.com/muesli/ansi/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/ansi/README.md +0 -31 collapsed to keep the page light
D vendor/github.com/muesli/ansi/ansi.go +0 -7 collapsed to keep the page light
D vendor/github.com/muesli/ansi/buffer.go +0 -40 collapsed to keep the page light
D vendor/github.com/muesli/ansi/compressor/writer.go +0 -132 collapsed to keep the page light
D vendor/github.com/muesli/ansi/writer.go +0 -76 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.golangci-soft.yml +0 -47 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/.golangci.yml +0 -29 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/README.md +0 -64 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader.go +0 -93 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_bsd.go +0 -146 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_default.go +0 -12 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_linux.go +0 -154 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_select.go +0 -136 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_unix.go +0 -18 collapsed to keep the page light
D vendor/github.com/muesli/cancelreader/cancelreader_windows.go +0 -244 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.gitignore +0 -15 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.golangci-soft.yml +0 -43 collapsed to keep the page light
D vendor/github.com/muesli/termenv/.golangci.yml +0 -28 collapsed to keep the page light
D vendor/github.com/muesli/termenv/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/muesli/termenv/README.md +0 -431 collapsed to keep the page light
D vendor/github.com/muesli/termenv/ansi_compat.md +0 -65 collapsed to keep the page light
D vendor/github.com/muesli/termenv/ansicolors.go +0 -281 collapsed to keep the page light
D vendor/github.com/muesli/termenv/color.go +0 -205 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_linux.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_solaris.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_unix.go +0 -13 collapsed to keep the page light
D vendor/github.com/muesli/termenv/constants_zos.go +0 -8 collapsed to keep the page light
D vendor/github.com/muesli/termenv/copy.go +0 -37 collapsed to keep the page light
D vendor/github.com/muesli/termenv/hyperlink.go +0 -11 collapsed to keep the page light
D vendor/github.com/muesli/termenv/notification.go +0 -11 collapsed to keep the page light
D vendor/github.com/muesli/termenv/output.go +0 -205 collapsed to keep the page light
D vendor/github.com/muesli/termenv/profile.go +0 -112 collapsed to keep the page light
D vendor/github.com/muesli/termenv/screen.go +0 -590 collapsed to keep the page light
D vendor/github.com/muesli/termenv/style.go +0 -126 collapsed to keep the page light
D vendor/github.com/muesli/termenv/templatehelper.go +0 -88 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv.go +0 -115 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_other.go +0 -30 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_posix.go +0 -17 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_solaris.go +0 -22 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_unix.go +0 -301 collapsed to keep the page light
D vendor/github.com/muesli/termenv/termenv_windows.go +0 -140 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/.gitignore +0 -24 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/README.md +0 -35 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/atomic.go +0 -73 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/file_unix.go +0 -14 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/file_windows.go +0 -33 collapsed to keep the page light
D vendor/github.com/natefinch/atomic/zfile_windows.go +0 -27 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.dockerignore +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.gitattributes +0 -4 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.golangci.toml +0 -76 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/.goreleaser.yaml +0 -128 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/AGENTS.md +0 -73 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/CONTRIBUTING.md +0 -254 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/Dockerfile +0 -6 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/README.md +0 -327 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/SECURITY.md +0 -16 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/capability_baseline.txt +0 -1 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/caps.sh +0 -101 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/ci.sh +0 -293 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/decode.go +0 -538 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/decode_fused.go +0 -362 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/doc.go +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/errors.go +0 -233 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/parserbridge/parserbridge.go +0 -37 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/key.go +0 -49 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/seen.go +0 -450 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/internal/tracker/tracker.go +0 -2 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/localtime.go +0 -121 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/marshaler.go +0 -1697 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/strict.go +0 -108 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/test-go-versions.sh +0 -597 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/toml.abnf +0 -246 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/types.go +0 -24 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unmarshaler.go +0 -2396 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/ast.go +0 -124 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/bridge.go +0 -21 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/doc.go +0 -3 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/kind.go +0 -83 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/marshaler.go +0 -29 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/parser.go +0 -1686 collapsed to keep the page light
D vendor/github.com/pelletier/go-toml/v2/unstable/unmarshaler.go +0 -43 collapsed to keep the page light
D vendor/github.com/pmezard/go-difflib/LICENSE +0 -27 collapsed to keep the page light
D vendor/github.com/pmezard/go-difflib/difflib/difflib.go +0 -772 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.gitignore +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.golangci.yaml +0 -31 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/.goreleaser.yaml +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/CHANGELOG.md +0 -350 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/Makefile +0 -150 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/README.md +0 -500 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/create.go +0 -116 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialect/querier.go +0 -25 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialect/querier_extended.go +0 -22 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/dialects.go +0 -214 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/doc.go +0 -14 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/sql_extended.go +0 -23 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/store.go +0 -66 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/database/store_extended.go +0 -33 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/db.go +0 -48 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/dialect.go +0 -74 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/down.go +0 -107 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/fix.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/globals.go +0 -104 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/goose.go +0 -141 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/helpers.go +0 -84 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/install.sh +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/controller/store.go +0 -37 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/clickhouse.go +0 -53 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/dsql.go +0 -66 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/mysql.go +0 -62 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/postgres.go +0 -70 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/redshift.go +0 -52 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/spanner.go +0 -50 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/sqlite3.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/sqlserver.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/starrocks.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/tidb.go +0 -52 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/turso.go +0 -14 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/vertica.go +0 -54 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/dialects/ydb.go +0 -72 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/gooseutil/resolve.go +0 -118 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/legacystore/legacystore.go +0 -173 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/sqlparser/parse.go +0 -59 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/internal/sqlparser/parser.go +0 -394 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/store/postgres.go +0 -282 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/store/store.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/table/config.go +0 -28 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/internal/table/locker.go +0 -237 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/locker.go +0 -32 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/postgres.go +0 -165 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/session_locker_options.go +0 -98 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/lock/table_locker_options.go +0 -136 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/log.go +0 -36 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migrate.go +0 -379 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migration.go +0 -398 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/migration_sql.go +0 -115 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/osfs.go +0 -28 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider.go +0 -669 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_collect.go +0 -196 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_errors.go +0 -48 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_options.go +0 -280 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_run.go +0 -535 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/provider_types.go +0 -91 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/redo.go +0 -51 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/register.go +0 -133 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/reset.go +0 -64 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/status.go +0 -64 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/up.go +0 -221 collapsed to keep the page light
D vendor/github.com/pressly/goose/v3/version.go +0 -52 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/LICENSE.txt +0 -21 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/README.md +0 -137 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/doc.go +0 -108 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/eastasianwidth.go +0 -2588 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/emojipresentation.go +0 -295 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/gen_breaktest.go +0 -215 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/gen_properties.go +0 -261 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/grapheme.go +0 -331 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/graphemeproperties.go +0 -1915 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/graphemerules.go +0 -176 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/line.go +0 -134 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/lineproperties.go +0 -3554 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/linerules.go +0 -626 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/properties.go +0 -208 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentence.go +0 -90 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentenceproperties.go +0 -2845 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/sentencerules.go +0 -276 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/step.go +0 -242 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/width.go +0 -61 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/word.go +0 -89 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/wordproperties.go +0 -1883 collapsed to keep the page light
D vendor/github.com/rivo/uniseg/wordrules.go +0 -282 collapsed to keep the page light
D vendor/github.com/rs/zerolog/.gitignore +0 -27 collapsed to keep the page light
D vendor/github.com/rs/zerolog/CONTRIBUTING.md +0 -43 collapsed to keep the page light
D vendor/github.com/rs/zerolog/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/rs/zerolog/README.md +0 -858 collapsed to keep the page light
D vendor/github.com/rs/zerolog/array.go +0 -276 collapsed to keep the page light
D vendor/github.com/rs/zerolog/console.go +0 -535 collapsed to keep the page light
D vendor/github.com/rs/zerolog/context.go +0 -535 collapsed to keep the page light
D vendor/github.com/rs/zerolog/ctx.go +0 -51 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder.go +0 -56 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder_cbor.go +0 -45 collapsed to keep the page light
D vendor/github.com/rs/zerolog/encoder_json.go +0 -51 collapsed to keep the page light
D vendor/github.com/rs/zerolog/event.go +0 -919 collapsed to keep the page light
D vendor/github.com/rs/zerolog/example.jsonl +0 -7 collapsed to keep the page light
D vendor/github.com/rs/zerolog/fields.go +0 -312 collapsed to keep the page light
D vendor/github.com/rs/zerolog/globals.go +0 -208 collapsed to keep the page light
D vendor/github.com/rs/zerolog/globals_118.go +0 -30 collapsed to keep the page light
D vendor/github.com/rs/zerolog/go112.go +0 -7 collapsed to keep the page light
D vendor/github.com/rs/zerolog/hook.go +0 -64 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/README.md +0 -56 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/base.go +0 -19 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/cbor.go +0 -102 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/decode_stream.go +0 -654 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/string.go +0 -117 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/time.go +0 -111 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/cbor/types.go +0 -524 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/base.go +0 -19 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/bytes.go +0 -85 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/string.go +0 -149 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/time.go +0 -124 collapsed to keep the page light
D vendor/github.com/rs/zerolog/internal/json/types.go +0 -466 collapsed to keep the page light
D vendor/github.com/rs/zerolog/log.go +0 -528 collapsed to keep the page light
D vendor/github.com/rs/zerolog/not_go112.go +0 -5 collapsed to keep the page light
D vendor/github.com/rs/zerolog/pretty.png +0 -0 binary file: no text diff
binary file: no text diff
D vendor/github.com/rs/zerolog/sampler.go +0 -137 collapsed to keep the page light
D vendor/github.com/rs/zerolog/slog.go +0 -247 collapsed to keep the page light
D vendor/github.com/rs/zerolog/syslog.go +0 -89 collapsed to keep the page light
D vendor/github.com/rs/zerolog/writer.go +0 -355 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/.travis.yml +0 -17 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/LICENSE.txt +0 -29 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/README.md +0 -335 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/block.go +0 -1612 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/doc.go +0 -46 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/entities.go +0 -2236 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/esc.go +0 -70 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/html.go +0 -952 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/inline.go +0 -1228 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/markdown.go +0 -950 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/node.go +0 -360 collapsed to keep the page light
D vendor/github.com/russross/blackfriday/v2/smartypants.go +0 -457 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.editorconfig +0 -21 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.envrc +0 -4 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.gitignore +0 -5 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/.golangci.yaml +0 -37 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/LICENSE +0 -19 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/README.md +0 -37 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.lock +0 -103 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.nix +0 -17 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/devenv.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/file_type.go +0 -32 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/finder.go +0 -171 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/glob.go +0 -5 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/glob_windows.go +0 -8 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/helpers.go +0 -41 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/internal/queue/eager.go +0 -53 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/internal/queue/queue.go +0 -8 collapsed to keep the page light
D vendor/github.com/sagikazarmark/locafero/justfile +0 -14 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/.editorconfig +0 -18 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/CONTRIBUTING.md +0 -1 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/Makefile +0 -59 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/README.md +0 -186 collapsed to keep the page light
D vendor/github.com/sahilm/fuzzy/fuzzy.go +0 -263 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/LICENSE +0 -202 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/README.md +0 -185 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff.go +0 -134 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_constant.go +0 -25 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_exponential.go +0 -47 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/backoff_fibonacci.go +0 -56 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/rand.go +0 -54 collapsed to keep the page light
D vendor/github.com/sethvargo/go-retry/retry.go +0 -104 collapsed to keep the page light
D vendor/github.com/spf13/afero/.editorconfig +0 -15 collapsed to keep the page light
D vendor/github.com/spf13/afero/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/afero/.golangci.yaml +0 -48 collapsed to keep the page light
D vendor/github.com/spf13/afero/LICENSE.txt +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/afero/README.md +0 -474 collapsed to keep the page light
D vendor/github.com/spf13/afero/afero.go +0 -111 collapsed to keep the page light
D vendor/github.com/spf13/afero/appveyor.yml +0 -10 collapsed to keep the page light
D vendor/github.com/spf13/afero/basepath.go +0 -222 collapsed to keep the page light
D vendor/github.com/spf13/afero/cacheOnReadFs.go +0 -315 collapsed to keep the page light
D vendor/github.com/spf13/afero/const_bsds.go +0 -23 collapsed to keep the page light
D vendor/github.com/spf13/afero/const_win_unix.go +0 -22 collapsed to keep the page light
D vendor/github.com/spf13/afero/copyOnWriteFs.go +0 -332 collapsed to keep the page light
D vendor/github.com/spf13/afero/httpFs.go +0 -114 collapsed to keep the page light
D vendor/github.com/spf13/afero/internal/common/adapters.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/afero/iofs.go +0 -302 collapsed to keep the page light
D vendor/github.com/spf13/afero/ioutil.go +0 -243 collapsed to keep the page light
D vendor/github.com/spf13/afero/lstater.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/afero/match.go +0 -110 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/dir.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/dirmap.go +0 -43 collapsed to keep the page light
D vendor/github.com/spf13/afero/mem/file.go +0 -373 collapsed to keep the page light
D vendor/github.com/spf13/afero/memmap.go +0 -463 collapsed to keep the page light
D vendor/github.com/spf13/afero/os.go +0 -113 collapsed to keep the page light
D vendor/github.com/spf13/afero/path.go +0 -106 collapsed to keep the page light
D vendor/github.com/spf13/afero/readonlyfs.go +0 -96 collapsed to keep the page light
D vendor/github.com/spf13/afero/regexpfs.go +0 -223 collapsed to keep the page light
D vendor/github.com/spf13/afero/symlink.go +0 -55 collapsed to keep the page light
D vendor/github.com/spf13/afero/unionFile.go +0 -331 collapsed to keep the page light
D vendor/github.com/spf13/afero/util.go +0 -329 collapsed to keep the page light
D vendor/github.com/spf13/cast/.editorconfig +0 -15 collapsed to keep the page light
D vendor/github.com/spf13/cast/.gitignore +0 -25 collapsed to keep the page light
D vendor/github.com/spf13/cast/.golangci.yaml +0 -39 collapsed to keep the page light
D vendor/github.com/spf13/cast/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/cast/Makefile +0 -40 collapsed to keep the page light
D vendor/github.com/spf13/cast/README.md +0 -79 collapsed to keep the page light
D vendor/github.com/spf13/cast/alias.go +0 -69 collapsed to keep the page light
D vendor/github.com/spf13/cast/basic.go +0 -131 collapsed to keep the page light
D vendor/github.com/spf13/cast/cast.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/cast/indirect.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/cast/internal/time.go +0 -79 collapsed to keep the page light
D vendor/github.com/spf13/cast/internal/timeformattype_string.go +0 -27 collapsed to keep the page light
D vendor/github.com/spf13/cast/map.go +0 -212 collapsed to keep the page light
D vendor/github.com/spf13/cast/number.go +0 -549 collapsed to keep the page light
D vendor/github.com/spf13/cast/slice.go +0 -106 collapsed to keep the page light
D vendor/github.com/spf13/cast/time.go +0 -116 collapsed to keep the page light
D vendor/github.com/spf13/cast/zz_generated.go +0 -261 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.gitignore +0 -39 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.golangci.yml +0 -66 collapsed to keep the page light
D vendor/github.com/spf13/cobra/.mailmap +0 -3 collapsed to keep the page light
D vendor/github.com/spf13/cobra/CONDUCT.md +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/cobra/CONTRIBUTING.md +0 -50 collapsed to keep the page light
D vendor/github.com/spf13/cobra/LICENSE.txt +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/cobra/MAINTAINERS +0 -13 collapsed to keep the page light
D vendor/github.com/spf13/cobra/Makefile +0 -35 collapsed to keep the page light
D vendor/github.com/spf13/cobra/README.md +0 -133 collapsed to keep the page light
D vendor/github.com/spf13/cobra/SECURITY.md +0 -105 collapsed to keep the page light
D vendor/github.com/spf13/cobra/active_help.go +0 -60 collapsed to keep the page light
D vendor/github.com/spf13/cobra/args.go +0 -131 collapsed to keep the page light
D vendor/github.com/spf13/cobra/bash_completions.go +0 -709 collapsed to keep the page light
D vendor/github.com/spf13/cobra/bash_completionsV2.go +0 -484 collapsed to keep the page light
D vendor/github.com/spf13/cobra/cobra.go +0 -246 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command.go +0 -2072 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command_notwin.go +0 -20 collapsed to keep the page light
D vendor/github.com/spf13/cobra/command_win.go +0 -41 collapsed to keep the page light
D vendor/github.com/spf13/cobra/completions.go +0 -1020 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/man_docs.go +0 -246 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/md_docs.go +0 -158 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/rest_docs.go +0 -186 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/util.go +0 -52 collapsed to keep the page light
D vendor/github.com/spf13/cobra/doc/yaml_docs.go +0 -175 collapsed to keep the page light
D vendor/github.com/spf13/cobra/fish_completions.go +0 -292 collapsed to keep the page light
D vendor/github.com/spf13/cobra/flag_groups.go +0 -290 collapsed to keep the page light
D vendor/github.com/spf13/cobra/powershell_completions.go +0 -350 collapsed to keep the page light
D vendor/github.com/spf13/cobra/shell_completions.go +0 -98 collapsed to keep the page light
D vendor/github.com/spf13/cobra/zsh_completions.go +0 -308 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.editorconfig +0 -12 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.gitignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.golangci.yaml +0 -4 collapsed to keep the page light
D vendor/github.com/spf13/pflag/.travis.yml +0 -22 collapsed to keep the page light
D vendor/github.com/spf13/pflag/LICENSE +0 -28 collapsed to keep the page light
D vendor/github.com/spf13/pflag/README.md +0 -323 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool.go +0 -94 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool_func.go +0 -40 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bool_slice.go +0 -185 collapsed to keep the page light
D vendor/github.com/spf13/pflag/bytes.go +0 -209 collapsed to keep the page light
D vendor/github.com/spf13/pflag/count.go +0 -96 collapsed to keep the page light
D vendor/github.com/spf13/pflag/duration.go +0 -86 collapsed to keep the page light
D vendor/github.com/spf13/pflag/duration_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/errors.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/flag.go +0 -1289 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float32_slice.go +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float64.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/float64_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/func.go +0 -37 collapsed to keep the page light
D vendor/github.com/spf13/pflag/golangflag.go +0 -161 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int16.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int32_slice.go +0 -174 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int64.go +0 -84 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int64_slice.go +0 -166 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int8.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/int_slice.go +0 -158 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ip.go +0 -97 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ip_slice.go +0 -186 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipmask.go +0 -122 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipnet.go +0 -98 collapsed to keep the page light
D vendor/github.com/spf13/pflag/ipnet_slice.go +0 -147 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string.go +0 -80 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_array.go +0 -125 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_slice.go +0 -163 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_int.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_int64.go +0 -149 collapsed to keep the page light
D vendor/github.com/spf13/pflag/string_to_string.go +0 -168 collapsed to keep the page light
D vendor/github.com/spf13/pflag/text.go +0 -81 collapsed to keep the page light
D vendor/github.com/spf13/pflag/time.go +0 -124 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint16.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint32.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint64.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint8.go +0 -88 collapsed to keep the page light
D vendor/github.com/spf13/pflag/uint_slice.go +0 -168 collapsed to keep the page light
D vendor/github.com/spf13/viper/.editorconfig +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/viper/.envrc +0 -4 collapsed to keep the page light
D vendor/github.com/spf13/viper/.gitignore +0 -8 collapsed to keep the page light
D vendor/github.com/spf13/viper/.golangci.yaml +0 -118 collapsed to keep the page light
D vendor/github.com/spf13/viper/.yamlignore +0 -2 collapsed to keep the page light
D vendor/github.com/spf13/viper/.yamllint.yaml +0 -6 collapsed to keep the page light
D vendor/github.com/spf13/viper/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/spf13/viper/Makefile +0 -87 collapsed to keep the page light
D vendor/github.com/spf13/viper/README.md +0 -931 collapsed to keep the page light
D vendor/github.com/spf13/viper/TROUBLESHOOTING.md +0 -32 collapsed to keep the page light
D vendor/github.com/spf13/viper/UPGRADE.md +0 -147 collapsed to keep the page light
D vendor/github.com/spf13/viper/encoding.go +0 -181 collapsed to keep the page light
D vendor/github.com/spf13/viper/experimental.go +0 -8 collapsed to keep the page light
D vendor/github.com/spf13/viper/file.go +0 -104 collapsed to keep the page light
D vendor/github.com/spf13/viper/finder.go +0 -55 collapsed to keep the page light
D vendor/github.com/spf13/viper/flags.go +0 -57 collapsed to keep the page light
D vendor/github.com/spf13/viper/flake.lock +0 -255 collapsed to keep the page light
D vendor/github.com/spf13/viper/flake.nix +0 -61 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/dotenv/codec.go +0 -61 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/dotenv/map_utils.go +0 -41 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/json/codec.go +0 -17 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/toml/codec.go +0 -16 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go +0 -14 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/bind_struct.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/bind_struct_default.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/finder.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/internal/features/finder_default.go +0 -5 collapsed to keep the page light
D vendor/github.com/spf13/viper/logger.go +0 -31 collapsed to keep the page light
D vendor/github.com/spf13/viper/remote.go +0 -259 collapsed to keep the page light
D vendor/github.com/spf13/viper/util.go +0 -211 collapsed to keep the page light
D vendor/github.com/spf13/viper/viper.go +0 -2077 collapsed to keep the page light
D vendor/github.com/stretchr/objx/.codeclimate.yml +0 -21 collapsed to keep the page light
D vendor/github.com/stretchr/objx/.gitignore +0 -11 collapsed to keep the page light
D vendor/github.com/stretchr/objx/LICENSE +0 -22 collapsed to keep the page light
D vendor/github.com/stretchr/objx/README.md +0 -91 collapsed to keep the page light
D vendor/github.com/stretchr/objx/Taskfile.yml +0 -27 collapsed to keep the page light
D vendor/github.com/stretchr/objx/accessors.go +0 -197 collapsed to keep the page light
D vendor/github.com/stretchr/objx/conversions.go +0 -280 collapsed to keep the page light
D vendor/github.com/stretchr/objx/doc.go +0 -66 collapsed to keep the page light
D vendor/github.com/stretchr/objx/map.go +0 -214 collapsed to keep the page light
D vendor/github.com/stretchr/objx/mutations.go +0 -77 collapsed to keep the page light
D vendor/github.com/stretchr/objx/security.go +0 -12 collapsed to keep the page light
D vendor/github.com/stretchr/objx/tests.go +0 -17 collapsed to keep the page light
D vendor/github.com/stretchr/objx/type_specific.go +0 -346 collapsed to keep the page light
D vendor/github.com/stretchr/objx/type_specific_codegen.go +0 -2261 collapsed to keep the page light
D vendor/github.com/stretchr/objx/value.go +0 -159 collapsed to keep the page light
D vendor/github.com/stretchr/testify/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_compare.go +0 -495 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_format.go +0 -866 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_forward.go +0 -1723 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertion_order.go +0 -81 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/assertions.go +0 -2295 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/doc.go +0 -50 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/errors.go +0 -10 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/forward_assertions.go +0 -16 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/http_assertions.go +0 -165 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go +0 -24 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_default.go +0 -36 collapsed to keep the page light
D vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go +0 -17 collapsed to keep the page light
D vendor/github.com/stretchr/testify/mock/doc.go +0 -44 collapsed to keep the page light
D vendor/github.com/stretchr/testify/mock/mock.go +0 -1298 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/doc.go +0 -31 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/forward_requirements.go +0 -16 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require.go +0 -2180 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require.go.tmpl +0 -6 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require_forward.go +0 -1724 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/require_forward.go.tmpl +0 -5 collapsed to keep the page light
D vendor/github.com/stretchr/testify/require/requirements.go +0 -29 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.env +0 -1 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.env.invalid +0 -1 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.gitignore +0 -4 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/.golangci.yaml +0 -7 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/CHANGELOG.md +0 -105 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/README.md +0 -129 collapsed to keep the page light
D vendor/github.com/subosito/gotenv/gotenv.go +0 -409 collapsed to keep the page light
D vendor/github.com/xo/terminfo/.gitignore +0 -9 collapsed to keep the page light
D vendor/github.com/xo/terminfo/LICENSE +0 -21 collapsed to keep the page light
D vendor/github.com/xo/terminfo/README.md +0 -139 collapsed to keep the page light
D vendor/github.com/xo/terminfo/caps.go +0 -31 collapsed to keep the page light
D vendor/github.com/xo/terminfo/capvals.go +0 -1525 collapsed to keep the page light
D vendor/github.com/xo/terminfo/color.go +0 -88 collapsed to keep the page light
D vendor/github.com/xo/terminfo/dec.go +0 -245 collapsed to keep the page light
D vendor/github.com/xo/terminfo/load.go +0 -64 collapsed to keep the page light
D vendor/github.com/xo/terminfo/param.go +0 -405 collapsed to keep the page light
D vendor/github.com/xo/terminfo/stack.go +0 -48 collapsed to keep the page light
D vendor/github.com/xo/terminfo/terminfo.go +0 -479 collapsed to keep the page light
D vendor/go.uber.org/multierr/.codecov.yml +0 -15 collapsed to keep the page light
D vendor/go.uber.org/multierr/.gitignore +0 -4 collapsed to keep the page light
D vendor/go.uber.org/multierr/CHANGELOG.md +0 -95 collapsed to keep the page light
D vendor/go.uber.org/multierr/LICENSE.txt +0 -19 collapsed to keep the page light
D vendor/go.uber.org/multierr/Makefile +0 -38 collapsed to keep the page light
D vendor/go.uber.org/multierr/README.md +0 -43 collapsed to keep the page light
D vendor/go.uber.org/multierr/error.go +0 -646 collapsed to keep the page light
D vendor/go.uber.org/multierr/error_post_go120.go +0 -48 collapsed to keep the page light
D vendor/go.uber.org/multierr/error_pre_go120.go +0 -79 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/LICENSE +0 -50 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/NOTICE +0 -13 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/README.md +0 -171 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/apic.go +0 -747 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/decode.go +0 -1018 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/emitterc.go +0 -2054 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/encode.go +0 -577 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/parserc.go +0 -1274 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/readerc.go +0 -434 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/resolve.go +0 -326 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/scannerc.go +0 -3040 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/sorter.go +0 -134 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/writerc.go +0 -48 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yaml.go +0 -703 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yamlh.go +0 -811 collapsed to keep the page light
D vendor/go.yaml.in/yaml/v3/yamlprivateh.go +0 -198 collapsed to keep the page light
D vendor/golang.org/x/image/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/image/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/image/draw/draw.go +0 -67 collapsed to keep the page light
D vendor/golang.org/x/image/draw/impl.go +0 -8426 collapsed to keep the page light
D vendor/golang.org/x/image/draw/scale.go +0 -525 collapsed to keep the page light
D vendor/golang.org/x/image/math/f64/f64.go +0 -37 collapsed to keep the page light
D vendor/golang.org/x/mod/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/mod/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/mod/internal/lazyregexp/lazyre.go +0 -78 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/print.go +0 -184 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/read.go +0 -962 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/rule.go +0 -1951 collapsed to keep the page light
D vendor/golang.org/x/mod/modfile/work.go +0 -333 collapsed to keep the page light
D vendor/golang.org/x/mod/module/module.go +0 -840 collapsed to keep the page light
D vendor/golang.org/x/mod/module/pseudo.go +0 -250 collapsed to keep the page light
D vendor/golang.org/x/mod/semver/semver.go +0 -407 collapsed to keep the page light
D vendor/golang.org/x/net/LICENSE +0 -27 collapsed to keep the page light
D vendor/golang.org/x/net/PATENTS +0 -22 collapsed to keep the page light
D vendor/golang.org/x/net/html/atom/atom.go +0 -78 collapsed to keep the page light
D vendor/golang.org/x/net/html/atom/table.go +0 -785 collapsed to keep the page light
D vendor/golang.org/x/net/html/const.go +0 -111 collapsed to keep the page light
D vendor/golang.org/x/net/html/doc.go +0 -122 collapsed to keep the page light
D vendor/golang.org/x/net/html/doctype.go +0 -156 collapsed to keep the page light
D vendor/golang.org/x/net/html/entity.go +0 -2252 collapsed to keep the page light
D vendor/golang.org/x/net/html/escape.go +0 -379 collapsed to keep the page light
D vendor/golang.org/x/net/html/foreign.go +0 -221 collapsed to keep the page light
D vendor/golang.org/x/net/html/iter.go +0 -54 collapsed to keep the page light
D vendor/golang.org/x/net/html/node.go +0 -230 collapsed to keep the page light
D vendor/golang.org/x/net/html/nodetype_string.go +0 -31 collapsed to keep the page light
D vendor/golang.org/x/net/html/parse.go +0 -2378 collapsed to keep the page light
D vendor/golang.org/x/net/html/render.go +0 -316 collapsed to keep the page light
D vendor/golang.org/x/net/html/token.go +0 -1322 collapsed to keep the page light
D vendor/golang.org/x/net/idna/idna.go +0 -880 collapsed to keep the page light
D vendor/golang.org/x/net/idna/punycode.go +0 -220 collapsed to keep the page light
D vendor/golang.org/x/net/idna/tables15.0.0.go +0 -5144 collapsed to keep the page light
D vendor/golang.org/x/net/idna/tables17.0.0.go +0 -5302 collapsed to keep the page light
D vendor/golang.org/x/net/idna/trie.go +0 -51 collapsed to keep the page light
D vendor/golang.org/x/net/idna/trieval.go +0 -119 collapsed to keep the page light
D vendor/golang.org/x/net/publicsuffix/data/children +0 -0 binary file: no text diff
binary file: no text diff
D vendor/golang.org/x/net/publicsuffix/data/nodes +0 -0 binary file: no text diff
binary file: no text diff