Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func (*Data) Buf ¶
Buf returns this Data's buffer. This is the buffer that should be used everywhere except for the tun.Device ReadPacket and WritePacket methods.
type Pool ¶
type Pool struct { MTU int // contains filtered or unexported fields }
A Pool is a specialized sync.Pool for Data. The Data struct is platform specific
func (*Pool) Copy ¶ added in v2.6.5
Copy copies n bytes from the given Data buffer into a new Data which is obtained from the pool, and returns the new data.
Click to show internal directories.
Click to hide internal directories.