mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-05 21:06:50 +08:00
11 lines
231 B
Go
11 lines
231 B
Go
package buffer
|
|
|
|
type Prependable struct {
|
|
buf View // Buf 是支持前置缓冲区的缓冲区
|
|
usedIdx int // 是缓冲区的使用部分开始的索引
|
|
}
|
|
|
|
func NewPrependable(size int) Prependable {
|
|
return Prependable{}
|
|
}
|