mirror of
https://github.com/facefusion/facefusion.git
synced 2026-09-26 17:30:46 +02:00
use Buffer and BufferPack everywhere (#1154)
This commit is contained in:
@@ -3,10 +3,11 @@ import zlib
|
||||
from typing import Optional
|
||||
|
||||
from facefusion.filesystem import get_file_name, is_file
|
||||
from facefusion.types import Buffer
|
||||
|
||||
|
||||
def create_hash(content : bytes) -> str:
|
||||
return format(zlib.crc32(content), '08x')
|
||||
def create_hash(buffer : Buffer) -> str:
|
||||
return format(zlib.crc32(buffer), '08x')
|
||||
|
||||
|
||||
def validate_hash(validate_path : str) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user