MCPcopy
hub / github.com/xjasonlyu/tun2socks / Get

Function Get

buffer/pool.go:22–24  ·  view source on GitHub ↗

Get gets a []byte from default allocator with most appropriate cap.

(size int)

Source from the content-addressed store, hash-verified

20
21// Get gets a []byte from default allocator with most appropriate cap.
22func Get(size int) []byte {
23 return _allocator.Get(size)
24}
25
26// Put returns a []byte to default allocator for future use.
27func Put(buf []byte) error {

Callers 11

WriteToMethod · 0.92
WriteToMethod · 0.92
WriteMethod · 0.92
ReadFromMethod · 0.92
ReadMethod · 0.92
WriteToMethod · 0.92
ReadMethod · 0.92
readMethod · 0.92
ReadMethod · 0.92
copyPacketDataFunction · 0.92
unidirectionalStreamFunction · 0.92

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected