MCPcopy Index your code
hub / github.com/Monibuca/engine / SubBuf

Method SubBuf

util/buffer.go:190–192  ·  view source on GitHub ↗
(start int, length int)

Source from the content-addressed store, hash-verified

188 return cap(b)
189}
190func (b Buffer) SubBuf(start int, length int) Buffer {
191 return b[start : start+length]
192}
193
194// Malloc 扩大原来的buffer的长度,返回新增的buffer
195func (b *Buffer) Malloc(count int) Buffer {

Callers 3

WriteMethod · 0.95
MallocMethod · 0.95
ResetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected