Files
beeq/buffer.go

12 lines
157 B
Go

package beeq
func Alloc(l int) []byte {
return make([]byte, l)
}
func ReAlloc(buf []byte, l int) []byte {
b := make([]byte, l)
copy(b, buf)
return b
}