Files
netstack/tcpip/buffer/prependable.go
2021-09-03 21:50:49 +08:00

11 lines
231 B
Go

package buffer
type Prependable struct {
buf View // Buf 是支持前置缓冲区的缓冲区
usedIdx int // 是缓冲区的使用部分开始的索引
}
func NewPrependable(size int) Prependable {
return Prependable{}
}