mirror of
				https://github.com/datarhei/core.git
				synced 2025-11-01 03:42:51 +08:00 
			
		
		
		
	Update dependencies
This commit is contained in:
		
							
								
								
									
										13
									
								
								vendor/github.com/klauspost/compress/internal/race/norace.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								vendor/github.com/klauspost/compress/internal/race/norace.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| // Copyright 2015 The Go Authors. All rights reserved. | ||||
| // Use of this source code is governed by a BSD-style | ||||
| // license that can be found in the LICENSE file. | ||||
|  | ||||
| //go:build !race | ||||
|  | ||||
| package race | ||||
|  | ||||
| func ReadSlice[T any](s []T) { | ||||
| } | ||||
|  | ||||
| func WriteSlice[T any](s []T) { | ||||
| } | ||||
							
								
								
									
										26
									
								
								vendor/github.com/klauspost/compress/internal/race/race.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								vendor/github.com/klauspost/compress/internal/race/race.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| // Copyright 2015 The Go Authors. All rights reserved. | ||||
| // Use of this source code is governed by a BSD-style | ||||
| // license that can be found in the LICENSE file. | ||||
|  | ||||
| //go:build race | ||||
|  | ||||
| package race | ||||
|  | ||||
| import ( | ||||
| 	"runtime" | ||||
| 	"unsafe" | ||||
| ) | ||||
|  | ||||
| func ReadSlice[T any](s []T) { | ||||
| 	if len(s) == 0 { | ||||
| 		return | ||||
| 	} | ||||
| 	runtime.RaceReadRange(unsafe.Pointer(&s[0]), len(s)*int(unsafe.Sizeof(s[0]))) | ||||
| } | ||||
|  | ||||
| func WriteSlice[T any](s []T) { | ||||
| 	if len(s) == 0 { | ||||
| 		return | ||||
| 	} | ||||
| 	runtime.RaceWriteRange(unsafe.Pointer(&s[0]), len(s)*int(unsafe.Sizeof(s[0]))) | ||||
| } | ||||
							
								
								
									
										2
									
								
								vendor/github.com/klauspost/compress/internal/snapref/encode_other.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/klauspost/compress/internal/snapref/encode_other.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -51,7 +51,7 @@ func emitCopy(dst []byte, offset, length int) int { | ||||
| 	i := 0 | ||||
| 	// The maximum length for a single tagCopy1 or tagCopy2 op is 64 bytes. The | ||||
| 	// threshold for this loop is a little higher (at 68 = 64 + 4), and the | ||||
| 	// length emitted down below is is a little lower (at 60 = 64 - 4), because | ||||
| 	// length emitted down below is a little lower (at 60 = 64 - 4), because | ||||
| 	// it's shorter to encode a length 67 copy as a length 60 tagCopy2 followed | ||||
| 	// by a length 7 tagCopy1 (which encodes as 3+2 bytes) than to encode it as | ||||
| 	// a length 64 tagCopy2 followed by a length 3 tagCopy2 (which encodes as | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ingo Oppermann
					Ingo Oppermann