Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
}
190
func
(b Buffer) SubBuf(start int, length int) Buffer {
191
return
b[start : start+length]
192
}
193
194
// Malloc 扩大原来的buffer的长度,返回新增的buffer
195
func
(b *Buffer) Malloc(count int) Buffer {
Callers
3
Write
Method · 0.95
Malloc
Method · 0.95
Reset
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected