mirror of
https://github.com/zgwit/beeq.git
synced 2025-09-27 03:55:59 +08:00
12 lines
157 B
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
|
|
}
|