MCPcopy Create free account
hub / github.com/cloudwego/netpoll / MallocLen

Method MallocLen

nocopy_linkbuffer_race.go:114–118  ·  view source on GitHub ↗

MallocLen implements Writer.

()

Source from the content-addressed store, hash-verified

112
113// MallocLen implements Writer.
114func (b *SafeLinkBuffer) MallocLen() (length int) {
115 b.Lock()
116 defer b.Unlock()
117 return b.UnsafeLinkBuffer.MallocLen()
118}
119
120// MallocAck implements Writer.
121func (b *SafeLinkBuffer) MallocAck(n int) (err error) {

Callers

nothing calls this directly

Calls 1

MallocLenMethod · 0.65

Tested by

no test coverage detected