Discover Packages
github.com/telepresenceio/telepresence/v2
pkg
vif
buffer
package
Version:
v2.4.10-rc.1
Opens a new window with list of versions in this module.
Published: Jan 11, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Buf returns this Data's buffer. This is the buffer that should be used everywhere
except for the tun.Device ReadPacket and WritePacket methods.
Raw returns this Data's raw buffer. This is the buffer that should by the tun.Device ReadPacket
and WritePacket methods. It uses the same underlying byte array as Buf but might be offset before
Buf to allow for leading bytes that are provided before the IP header.
SetLength sets the length of this buffer. This will change the slice that Buf and Raw returns
type Pool struct {
MTU int
}
A Pool is a specialized sync.Pool for Data. The Data struct is platform specific
Source Files
¶
Click to show internal directories.
Click to hide internal directories.