Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Monibuca/engine
/ Relloc
Method
Relloc
util/buffer.go:209–212 ·
view source on GitHub ↗
Relloc 改变 buffer 到指定大小
(count int)
Source
from the content-addressed store, hash-verified
207
208
// Relloc 改变 buffer 到指定大小
209
func
(b *Buffer) Relloc(count int) {
210
b.Reset()
211
b.Malloc(count)
212
}
213
214
func
(b *Buffer) Reset() {
215
*b = b.SubBuf(0, 0)
Callers
nothing calls this directly
Calls
2
Reset
Method · 0.95
Malloc
Method · 0.95
Tested by
no test coverage detected