MCPcopy Index your code
hub / github.com/celzero/firestack / pullBuffer

Method pullBuffer

intra/netstack/dispatchers.go:133–170  ·  view source on GitHub ↗

pullBuffer extracts the enough underlying storage from b.buffer to hold n bytes. It removes this storage from b.buffer, returns a new buffer that holds the storage, and updates pulledIndex to indicate which part of b.buffer's storage must be reallocated during the next call to nextIovecs.

(n int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ioMethod · 0.80

Calls 2

WFunction · 0.92
SizeMethod · 0.45

Tested by

no test coverage detected