MCPcopy Index your code
hub / github.com/google/gvisor / fillWriteFromReaderEnd

Function fillWriteFromReaderEnd

pkg/buffer/buffer_test.go:71–76  ·  view source on GitHub ↗
(b *Buffer, data []byte)

Source from the content-addressed store, hash-verified

69}
70
71func fillWriteFromReaderEnd(b *Buffer, data []byte) {
72 b.GrowTo(baseChunkSize-1, false)
73 buf := bytes.NewBuffer(data)
74 b.WriteFromReader(buf, int64(len(data)))
75 b.TrimFront(baseChunkSize - 1)
76}
77
78var fillFuncs = map[string]func(*Buffer, []byte){
79 "append": fillAppend,

Callers

nothing calls this directly

Calls 3

GrowToMethod · 0.80
WriteFromReaderMethod · 0.80
TrimFrontMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…