malloc

package module
v0.0.0-...-a6a0d76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2019 License: MIT Imports: 2 Imported by: 0

README

go-malloc

Call malloc from Go without panicking if you're out of memory.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Free

func Free(pointer unsafe.Pointer)

Free the pointer.

func Malloc

func Malloc(size uintptr) unsafe.Pointer

Malloc calls malloc but does not crash Go if the allocation fails.

func Realloc

func Realloc(pointer unsafe.Pointer, size uintptr) unsafe.Pointer

Realloc calls realloc with the given pointer and size.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL