Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultSize = 16 * 0x400
Variables ¶
This section is empty.
Functions ¶
func GetBytes ¶
func GetBytes[T constraints.Integer](size T) []byte
func PutBytesV2 ¶
func PutBytesV2(b *Bytes)
Types ¶
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
func GetBytesV2 ¶
func GetBytesV2[T constraints.Integer](size T) *Bytes
type Pool ¶
type Pool interface { GetBytes(size int) []byte PutBytes(b []byte) GetBuffer() *bytes.Buffer PutBuffer(b *bytes.Buffer) }
var DefaultPool Pool = &pool{}
type ReverseProxyBuffer ¶
type ReverseProxyBuffer struct{}
func (ReverseProxyBuffer) Get ¶
func (ReverseProxyBuffer) Get() []byte
func (ReverseProxyBuffer) Put ¶
func (ReverseProxyBuffer) Put(b []byte)
Click to show internal directories.
Click to hide internal directories.