package
0.0.0-20191123085552-55fcc16cd0eb
Repository: https://github.com/comzyh/netstack.git
Documentation: pkg.go.dev
# Functions
NewEmptyPrependableFromView creates a new prependable buffer from a View.
NewPrependable allocates a new prependable buffer with the given size.
NewPrependableFromView creates an entirely-used Prependable from a View.
NewVectorisedView creates a new vectorised view from an already-allocated slice of View and sets its size.
NewView allocates a new buffer and returns an initialized view that covers the whole buffer.
NewViewFromBytes allocates a new buffer and copies in the given bytes.
# Structs
Prependable is a buffer that grows backwards, that is, more data can be prepended to it.
VectorisedView is a vectorised version of View using non contiguous memory.
# Type aliases
View is a slice of a buffer, with convenience methods.