Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/smasher164/mem
/ functions
Functions
15 in github.com/smasher164/mem
⨍
Functions
15
◇
Types & classes
2
↓ 7 callers
Function
Free
Free deallocates the memory pointed to by p. It is goroutine-safe and attempts to preserve the semantics of POSIX libc's free. However, Free panics if
mem.go:99
↓ 5 callers
Function
errpanic
(f func())
mem_test.go:23
↓ 4 callers
Function
Alloc
Alloc allocates size bytes of memory, and returns a pointer to it. It is goroutine-safe and attempts to preserve the semantics of POSIX libc's malloc.
mem.go:44
↓ 4 callers
Function
allocTester
(t *testing.T)
mem_test.go:44
↓ 2 callers
Function
roundMultiple
return n rounded up to a multiple of k.
mem.go:33
↓ 1 callers
Function
mmap
(size uint)
map_unix.go:12
↓ 1 callers
Function
munmap
(p unsafe.Pointer)
map_unix.go:20
Function
BenchmarkConsecutiveAlloc
(b *testing.B)
mem_test.go:126
Function
BenchmarkConsecutiveFree
(b *testing.B)
mem_test.go:141
Function
TestConsecutive
(t *testing.T)
mem_test.go:59
Function
TestConsecutiveConcurrent
(t *testing.T)
mem_test.go:98
Function
TestMixed
(t *testing.T)
mem_test.go:72
Function
TestZero
(t *testing.T)
mem_test.go:33
Function
mmap
(size uint)
map_windows.go:9
Function
munmap
(p unsafe.Pointer)
map_windows.go:17