Documentation
¶
Overview ¶
Package internal contains shared utilities used by the relay implementations: tiered buffer pooling (1 MB / 5 MB / 10 MB) and the common frame-reception routine ReceiveFrame.
This package is not part of the public API.
Index ¶
Constants ¶
View Source
const ( OneMB uint32 = 1024 * 1024 * 1 FiveMB uint32 = 1024 * 1024 * 5 TenMB uint32 = 1024 * 1024 * 10 )
Variables ¶
This section is empty.
Functions ¶
func Preallocate ¶
func Preallocate()
Preallocate initializes the tiered buffer pools. Must be called before ReceiveFrame.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.