Documentation
¶
Overview ¶
Package buffer provides a pool of []byte.
Index ¶
Constants ¶
View Source
const ( // MaxSegmentSize is the largest possible UDP datagram size. MaxSegmentSize = (1 << 16) - 1 // RelayBufferSize is the default buffer size for TCP relays. // io.Copy default buffer size is 32 KiB, but the maximum packet // size of vmess/shadowsocks is about 16 KiB, so define a buffer // of 20 KiB to reduce the memory of each TCP relay. RelayBufferSize = 20 << 10 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.