MCPcopy
hub / github.com/gorilla/websocket / BufferPool

Interface BufferPool

conn.go:229–234  ·  conn.go::BufferPool

BufferPool represents a pool of buffers. The *sync.Pool type satisfies this interface. The type of the value stored in a pool is not specified.

Source from the content-addressed store, hash-verified

227// BufferPool represents a pool of buffers. The *sync.Pool type satisfies this
228// interface. The type of the value stored in a pool is not specified.
229type BufferPool interface {
230 // Get gets a value from the pool or returns nil if the pool is empty.
231 Get() interface{}
232 // Put adds a value to the pool.
233 Put(interface{})
234}
235
236// writePoolData is the type added to the write buffer pool. This wrapper is
237// used to prevent applications from peeking at and depending on the values

Callers 11

selectSubprotocolMethod · 0.65
UpgradeMethod · 0.65
SubprotocolsFunction · 0.65
TestHostFunction · 0.65
TestNextProtosFunction · 0.65
beginMessageMethod · 0.65
endMessageMethod · 0.65
CloseMethod · 0.65
CloseMethod · 0.65

Implementers 1

simpleBufferPoolconn_test.go

Calls

no outgoing calls

Tested by

no test coverage detected