forked from K0lb3/UnityPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEndianBinaryReader.pyi
More file actions
63 lines (57 loc) · 2.57 KB
/
Copy pathEndianBinaryReader.pyi
File metadata and controls
63 lines (57 loc) · 2.57 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from __future__ import annotations
from abc import ABC, ABCMeta, abstractmethod
from typing import List, Optional, BinaryIO
from ._defines import Endianess
class EndianBinaryReader(ABC, BinaryIO, metaclass=ABCMeta):
endian: Endianess
Length: int
Position: int
BaseOffset: int
def __init__(self, item, endian=">", offset=0): ...
def seek(self, offset: int, whence: int = 0) -> int: ...
def tell(self) -> int: ...
def get_bytes(self) -> bytes: ...
@abstractmethod
def create_sub_reader(self, offset: int, length: int) -> EndianBinaryReader:
pass
@property
def bytes(self) -> bytes: ...
def read(self, *args) -> bytes: ...
def read_byte(self) -> int: ...
def read_u_byte(self) -> int: ...
def read_bytes(self, num: int) -> bytes: ...
def read_short(self) -> int: ...
def read_int(self) -> int: ...
def read_long(self) -> int: ...
def read_u_short(self) -> int: ...
def read_u_int(self) -> int: ...
def read_u_long(self) -> int: ...
def read_float(self) -> float: ...
def read_double(self) -> float: ...
def read_boolean(self) -> bool: ...
def read_string_to_null(self, max_length=32767) -> str: ...
def read_string(
self, size: Optional[int] = None, encoding: str = "utf8"
) -> str: ...
def read_aligned_string(self) -> str: ...
def align_stream(self, alignment=4) -> int: ...
def read_byte_array(self) -> bytes: ...
def read_array(self, command, length: int) -> list: ...
def read_array_struct(self, param: str, length: int = None) -> List[tuple]: ...
def read_boolean_array(self, length: int = None) -> List[bool]: ...
def read_u_byte_array(self, length: int = None) -> List[int]: ...
def read_u_short_array(self, length: int = None) -> List[int]: ...
def read_short_array(self, length: int = None) -> List[int]: ...
def read_int_array(self, length: int = None) -> List[int]: ...
def read_u_int_array(self, length: int = None) -> List[int]: ...
def read_long_array(self, length: int = None) -> List[int]: ...
def read_u_long_array(self, length: int = None) -> List[int]: ...
def read_float_array(self, length: int = None) -> List[float]: ...
def read_double_array(self, length: int = None) -> List[float]: ...
def real_offset(self) -> int: ...
def read_the_rest(self, obj_start: int, obj_size: int) -> bytes: ...
def unpack_array(self, string: str, count: int) -> list: ...
class EndianBinaryReader_Memoryview(EndianBinaryReader):
view: memoryview
class EndianBinaryReader_Streamable(EndianBinaryReader):
stream: BinaryIO