mirror of
				https://github.com/onyx-and-iris/vbantxt.git
				synced 2025-10-31 05:21:51 +00:00 
			
		
		
		
	fix pointer
This commit is contained in:
		
							parent
							
								
									be11239d39
								
							
						
					
					
						commit
						5a5a6fa893
					
				| @ -22,7 +22,7 @@ type packet struct { | ||||
| 	bpsIndex     int | ||||
| 	channel      int | ||||
| 	framecounter []byte | ||||
| 	hbuf         bytes.Buffer | ||||
| 	hbuf         *bytes.Buffer | ||||
| } | ||||
| 
 | ||||
| // newPacket returns a packet struct with default values, framecounter at 0. | ||||
| @ -35,7 +35,7 @@ func newPacket(streamname string) packet { | ||||
| 		bpsIndex:     0, | ||||
| 		channel:      0, | ||||
| 		framecounter: make([]byte, 4), | ||||
| 		hbuf:         *bytes.NewBuffer(make([]byte, headerSz)), | ||||
| 		hbuf:         bytes.NewBuffer(make([]byte, headerSz)), | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user