Documentation ¶
Overview ¶
Provides leaky buffer, based on the example in Effective Go.
Index ¶
Constants ¶
View Source
const (
GlobalLeakyBufSize = 20 * 1024 // the maximum packet size of vmess/shadowsocks is about 16 KiB
)
Variables ¶
View Source
var GlobalLeakyBuf = NewLeakyBuf(maxNBuf, GlobalLeakyBufSize)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.