mirror of
				https://github.com/zgwit/beeq.git
				synced 2025-10-31 10:36:24 +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
 | |
| }
 | 
