mirror of
https://github.com/simon987/fastimagehash-go.git
synced 2025-04-10 14:16:48 +00:00
Update fastimagehash.go
This commit is contained in:
parent
bcfdf954b4
commit
11d151edcb
@ -162,14 +162,14 @@ func readAll(filepath string) ([]byte, error) {
|
||||
}
|
||||
|
||||
func (h *Hash) ToHexStringReversed() (ret string) {
|
||||
out := C.hash_to_hex_string_reversed_wr(unsafe.Pointer(&h.Bytes[0]), C.int(h.Size * h.Size / 8))
|
||||
out := C.hash_to_hex_string_reversed_wr(unsafe.Pointer(&h.Bytes[0]), C.int(h.Size))
|
||||
ret = C.GoString(out)
|
||||
C.free(unsafe.Pointer(out))
|
||||
return
|
||||
}
|
||||
|
||||
func (h *Hash) ToHexString() (ret string) {
|
||||
out := C.hash_to_hex_string_wr(unsafe.Pointer(&h.Bytes[0]), C.int(h.Size * h.Size / 8))
|
||||
out := C.hash_to_hex_string_wr(unsafe.Pointer(&h.Bytes[0]), C.int(h.Size))
|
||||
ret = C.GoString(out)
|
||||
C.free(unsafe.Pointer(out))
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user