You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: bpool.go
    path of file: ./repos/goridge/internal
    
    the code of the file until where you have to start completion: package internal

import (
	"sync"
)

var frameChunkedPool = &sync.Map{}
var preallocate = &sync.Once{}

const (
	OneMB  uint32 = 1024 * 1024 * 1
	FiveMB uint32 = 1024 * 1024 * 5
	TenMB  uint32 = 1024 * 1024 * 
    
func get(size uint32) *[]byte {
	switch {
	case size <= OneMB:
		val, _ := frameChunkedPool.Load(OneMB)
		return val.(*sync.Pool).Get().(*[]byte)
	case size <= FiveMB:
		val, _ := frameChunkedPool.Load(FiveMB)
		return val.(*sync.Pool).Get().(*[]byte)
	case size <= TenMB:
		val, _ := frameChunkedPool.Load(TenMB)
		return val.(*sync.Pool).Get().(*[]byte)
	default:
		data := make([]byte, size)
		return &data
	}
}