google永远的神

This commit is contained in:
impact-eintr
2021-09-03 21:50:49 +08:00
parent b208476302
commit 0a08ba8692
7 changed files with 431 additions and 1 deletions

View File

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