Documentation
¶
Overview ¶
Package bufutil 提供共享的缓冲区工具
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CappedBuffer ¶
type CappedBuffer struct {
// contains filtered or unexported fields
}
CappedBuffer 有容量上限的输出缓冲区 写入超过上限后静默丢弃多余数据,不报错
func NewCappedBuffer ¶
func NewCappedBuffer(maxBytes int) *CappedBuffer
NewCappedBuffer 创建指定容量上限的缓冲区
func (*CappedBuffer) String ¶
func (b *CappedBuffer) String() string
Click to show internal directories.
Click to hide internal directories.