mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	TEST: Upgrade pion to v3.2.9. (#3567)
------ Co-authored-by: chundonglinlin <chundonglinlin@163.com>
This commit is contained in:
		
							parent
							
								
									900c4cdd97
								
							
						
					
					
						commit
						1545425e06
					
				
					 1383 changed files with 118469 additions and 41421 deletions
				
			
		
							
								
								
									
										24
									
								
								trunk/3rdparty/srs-bench/vendor/github.com/pion/stun/helpers.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								trunk/3rdparty/srs-bench/vendor/github.com/pion/stun/helpers.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,3 +1,6 @@ | |||
| // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||||
| // SPDX-License-Identifier: MIT | ||||
| 
 | ||||
| package stun | ||||
| 
 | ||||
| // Interfaces that are implemented by message attributes, shorthands for them, | ||||
|  | @ -21,15 +24,16 @@ type ( | |||
| // first error. To prevent allocations, pass pointers to values. | ||||
| // | ||||
| // Example: | ||||
| //  var ( | ||||
| //  	t        = BindingRequest | ||||
| //  	username = NewUsername("username") | ||||
| //  	nonce    = NewNonce("nonce") | ||||
| //  	realm    = NewRealm("example.org") | ||||
| //  ) | ||||
| //  m := new(Message) | ||||
| //  m.Build(t, username, nonce, realm)     // 4 allocations | ||||
| //  m.Build(&t, &username, &nonce, &realm) // 0 allocations | ||||
| // | ||||
| //	var ( | ||||
| //		t        = BindingRequest | ||||
| //		username = NewUsername("username") | ||||
| //		nonce    = NewNonce("nonce") | ||||
| //		realm    = NewRealm("example.org") | ||||
| //	) | ||||
| //	m := new(Message) | ||||
| //	m.Build(t, username, nonce, realm)     // 4 allocations | ||||
| //	m.Build(&t, &username, &nonce, &realm) // 0 allocations | ||||
| // | ||||
| // See BenchmarkBuildOverhead. | ||||
| func (m *Message) Build(setters ...Setter) error { | ||||
|  | @ -67,7 +71,7 @@ func (m *Message) Parse(getters ...Getter) error { | |||
| func MustBuild(setters ...Setter) *Message { | ||||
| 	m, err := Build(setters...) | ||||
| 	if err != nil { | ||||
| 		panic(err) // nolint | ||||
| 		panic(err) //nolint | ||||
| 	} | ||||
| 	return m | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue