MCPcopy Create free account
hub / github.com/egonelbre/exp / Realloc

Method Realloc

mm/malloc.go:54–63  ·  view source on GitHub ↗
(p *unsafe.Pointer, size int)

Source from the content-addressed store, hash-verified

52}
53
54func (m Aligned) Realloc(p *unsafe.Pointer, size int) bool {
55 if size == 0 {
56 m.Dealloc(*p)
57 *p = nil
58 return true
59 }
60
61 *p = unsafe.Pointer(C._aligned_realloc(*p, C.size_t(size), C.size_t(PlatformAlignment)))
62 return *p != nil
63}

Callers

nothing calls this directly

Calls 1

DeallocMethod · 0.95

Tested by

no test coverage detected