MCPcopy 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 到指定大小
209func (b *Buffer) Relloc(count int) {
210 b.Reset()
211 b.Malloc(count)
212}
213
214func (b *Buffer) Reset() {
215 *b = b.SubBuf(0, 0)

Callers

nothing calls this directly

Calls 2

ResetMethod · 0.95
MallocMethod · 0.95

Tested by

no test coverage detected