package
0.0.0-20240930074603-f0ba3941aa7d
Repository: https://github.com/finddiff/rulebaseproxy.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
NewAllocator initiates a []byte allocator for frames less than 65536 bytes, the waste(memory fragmentation) of space allocation is guaranteed to be no more than 50%.
No description provided by the author
No description provided by the author

# Constants

MaxSegmentSize is the largest possible UDP datagram size.
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.

# Structs

Allocator for incoming frames, optimized to prevent overwriting after zeroing.