use Buffer and BufferPack everywhere (#1154)

This commit is contained in:
Henry Ruhs
2026-06-11 13:03:29 +02:00
committed by GitHub
parent 57189c638e
commit e7d22e84bf
17 changed files with 79 additions and 80 deletions
+3 -2
View File
@@ -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: