bytess

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const CommonBufferSize = 32 * 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer []byte

Buffer 具备回收功能的缓冲区包装类型

func CommonFixedBuffer

func CommonFixedBuffer() *Buffer

CommonFixedBuffer 获取一个可复用的固定大小的缓冲区

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte

Bytes 获取缓冲区字节切片

func (*Buffer) PutBack

func (b *Buffer) PutBack()

PutBack 将缓冲区放回池中

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL