mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 16:02:26 -05:00 
			
		
		
		
	[chore]: Bump github.com/KimMachineGun/automemlimit from 0.2.4 to 0.2.5 (#1666)
Bumps [github.com/KimMachineGun/automemlimit](https://github.com/KimMachineGun/automemlimit) from 0.2.4 to 0.2.5. - [Release notes](https://github.com/KimMachineGun/automemlimit/releases) - [Commits](https://github.com/KimMachineGun/automemlimit/compare/v0.2.4...v0.2.5) --- updated-dependencies: - dependency-name: github.com/KimMachineGun/automemlimit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								3f9b2336c0
							
						
					
				
			
			
				commit
				
					
						57dc742c76
					
				
			
		
					 200 changed files with 16392 additions and 38190 deletions
				
			
		
							
								
								
									
										30
									
								
								vendor/github.com/cilium/ebpf/internal/ptr.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								vendor/github.com/cilium/ebpf/internal/ptr.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,30 +0,0 @@ | |||
| package internal | ||||
| 
 | ||||
| import "unsafe" | ||||
| 
 | ||||
| // NewPointer creates a 64-bit pointer from an unsafe Pointer. | ||||
| func NewPointer(ptr unsafe.Pointer) Pointer { | ||||
| 	return Pointer{ptr: ptr} | ||||
| } | ||||
| 
 | ||||
| // NewSlicePointer creates a 64-bit pointer from a byte slice. | ||||
| func NewSlicePointer(buf []byte) Pointer { | ||||
| 	if len(buf) == 0 { | ||||
| 		return Pointer{} | ||||
| 	} | ||||
| 
 | ||||
| 	return Pointer{ptr: unsafe.Pointer(&buf[0])} | ||||
| } | ||||
| 
 | ||||
| // NewStringPointer creates a 64-bit pointer from a string. | ||||
| func NewStringPointer(str string) Pointer { | ||||
| 	if str == "" { | ||||
| 		return Pointer{} | ||||
| 	} | ||||
| 
 | ||||
| 	// The kernel expects strings to be zero terminated | ||||
| 	buf := make([]byte, len(str)+1) | ||||
| 	copy(buf, str) | ||||
| 
 | ||||
| 	return Pointer{ptr: unsafe.Pointer(&buf[0])} | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue