-
-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathUnityPyBoost.pyi
More file actions
47 lines (42 loc) · 1.2 KB
/
UnityPyBoost.pyi
File metadata and controls
47 lines (42 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from __future__ import annotations
from typing import TYPE_CHECKING, Any, List, Literal, Optional, Tuple, Union
if TYPE_CHECKING:
from .classes import Object
from .files.SerializedFile import SerializedFile
def unpack_vertexdata(
data: Union[bytes, bytearray],
component_byte_size: int,
vertex_count: int,
stream_offset: int,
stream_stride: int,
channel_offset: int,
channel_dimension: int,
swap: bool,
) -> bytes: ...
def read_typetree(
data: Union[bytes, bytearray],
node: TypeTreeNode,
endian: Literal["<", ">"],
as_dict: bool,
assetsfile: SerializedFile,
classes: dict,
) -> Tuple[Union[dict[str, Any], Object], int]: ...
class TypeTreeNode:
m_Level: int
m_Type: str
m_Name: str
m_ByteSize: int
m_Version: int
m_Children: List[TypeTreeNode]
m_TypeFlags: Optional[int] = None
m_VariableCount: Optional[int] = None
m_Index: Optional[int] = None
m_MetaFlag: Optional[int] = None
m_RefTypeHash: Optional[int] = None
_clean_name: str
def decrypt_block(
index_bytes: Union[bytes, bytearray],
substitute_bytes: Union[bytes, bytearray],
data: Union[bytes, bytearray],
index: int,
) -> bytes: ...