Documentation ¶
Overview ¶
Package compress は、 トランスポートメッセージの圧縮に関するパッケージです。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Enableは圧縮の有効化です。 // // Enableが `false` の場合、その他すべての圧縮設定が無視されます。 Enable bool // Level は、 DEFLATE 圧縮の圧縮レベルです。 // 詳細な設定値については、 compress/zlib パッケージの定数を参照してください。 Level int // DisableContextTakeover は、 DEFLATE 圧縮のコンテキスト引き継ぎ(Context Takeover)の有効無効を設定します。 DisableContextTakeover bool // WindowBits は、DEFLATE 圧縮のコンテキスト引き継ぎ(Context Takeover)におけるウィンドウサイズを表すビット数です。 WindowBits int }
Config は、 トランスポート層での圧縮に関する設定です。
func (Config) WindowSize ¶
WindowSize は、DEFLATE 圧縮のコンテキスト引き継ぎ(Context Takeover)におけるウィンドウサイズを返します。 ( WindowSize = 2 ^ WindowBits )
Click to show internal directories.
Click to hide internal directories.