mirror of
				https://github.com/simon987/fastimagehash-go.git
				synced 2025-10-31 16:06:52 +00:00 
			
		
		
		
	Remove debug code
This commit is contained in:
		
							parent
							
								
									51613b1541
								
							
						
					
					
						commit
						a98f592b85
					
				| @ -185,13 +185,7 @@ func PHashFile(filepath string, hashSize, highFreqFactor int) (*Hash, Code) { | |||||||
| 
 | 
 | ||||||
| func PHashMem(buf []byte, hashSize, highFreqFactor int) (*Hash, Code) { | func PHashMem(buf []byte, hashSize, highFreqFactor int) (*Hash, Code) { | ||||||
| 	var ret C.int | 	var ret C.int | ||||||
| 
 | 	hash := C.phash_mem_wr(unsafe.Pointer(&buf[0]), C.size_t(len(buf)), C.int(hashSize), C.int(highFreqFactor), &ret) | ||||||
| 	p := C.malloc(C.size_t(len(buf))) |  | ||||||
| 	cBuf := (*[1 << 30]byte)(p) |  | ||||||
| 	copy(cBuf[:], buf) |  | ||||||
| 
 |  | ||||||
| 	hash := C.phash_mem_wr(p, C.size_t(len(buf)), C.int(hashSize), C.int(highFreqFactor), &ret) |  | ||||||
| 	C.free(p) |  | ||||||
| 	return retHash(hash, hashSize, ret) | 	return retHash(hash, hashSize, ret) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user