This page contains a list of interesting articles in various fields.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "unsafe" | |
func NewFrameHeap(size int) *FrameHeap { | |
buffer := make([]uint8, size) | |
location := uintptr(unsafe.Pointer(&buffer[0])) | |
return &FrameHeap{ | |
buffer: buffer, // Store it to prevent GC? |