Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultSmallBytesLen = 4
Variables ¶
View Source
var SmallBytesPool sync.Pool = sync.Pool{ New: func() interface{} { return NewSmallBytes(DefaultSmallBytesLen) }, }
Functions ¶
This section is empty.
Types ¶
type SmallBytes ¶
type SmallBytes struct {
Data []byte
}
func NewSmallBytes ¶
func NewSmallBytes(len int64) *SmallBytes
func (*SmallBytes) Release ¶
func (s *SmallBytes) Release()
Click to show internal directories.
Click to hide internal directories.