Source File
constants.go
Belonging Package
github.com/andybalholm/brotli
package brotli/* Copyright 2016 Google Inc. All Rights Reserved.Distributed under MIT license.See file LICENSE for detail or copy at https://opensource.org/licenses/MIT*//* Specification: 7.3. Encoding of the context map */const contextMapMaxRle = 16/* Specification: 2. Compressed representation overview */const maxNumberOfBlockTypes = 256/* Specification: 3.3. Alphabet sizes: insert-and-copy length */const numLiteralSymbols = 256const numCommandSymbols = 704const numBlockLenSymbols = 26const maxContextMapSymbols = (maxNumberOfBlockTypes + contextMapMaxRle)const maxBlockTypeSymbols = (maxNumberOfBlockTypes + 2)/* Specification: 3.5. Complex prefix codes */const repeatPreviousCodeLength = 16const repeatZeroCodeLength = 17const codeLengthCodes = (repeatZeroCodeLength + 1)/* "code length of 8 is repeated" */const initialRepeatedCodeLength = 8/* "Large Window Brotli" */const largeMaxDistanceBits = 62const largeMinWbits = 10const largeMaxWbits = 30/* Specification: 4. Encoding of distances */const numDistanceShortCodes = 16const maxNpostfix = 3const maxNdirect = 120const maxDistanceBits = 24func distanceAlphabetSize( uint, uint, uint) uint {return numDistanceShortCodes + + uint(<<(+1))}/* numDistanceSymbols == 1128 */const numDistanceSymbols = 1128const maxDistance = 0x3FFFFFCconst maxAllowedDistance = 0x7FFFFFFC/* 7.1. Context modes and context ID lookup for literals *//* "context IDs for literals are in the range of 0..63" */const literalContextBits = 6/* 7.2. Context ID for distances */const distanceContextBits = 2/* 9.1. Format of the Stream Header *//* Number of slack bytes for window size. Don't confusewith BROTLI_NUM_DISTANCE_SHORT_CODES. */const windowGap = 16func maxBackwardLimit( uint) uint {return (uint(1) << ) - windowGap}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |