added stubs for ProcessXor, ProcessRotateLeft, Checksum
This commit is contained in:
parent
e357050dbe
commit
3e388ef1a6
1 changed files with 28 additions and 0 deletions
|
|
@ -866,6 +866,34 @@ class Restreamed(
|
|||
sizecomputer: t.Callable[[int], int],
|
||||
) -> None: ...
|
||||
|
||||
class ProcessXor(
|
||||
Subconstruct[SubconParsedType, SubconBuildTypes, SubconParsedType, SubconParsedType]
|
||||
):
|
||||
def __new__(
|
||||
cls,
|
||||
padfunc: ConstantOrContextLambda2[t.Union[int, bytes]],
|
||||
subcon: Construct[SubconParsedType, SubconBuildTypes],
|
||||
) -> ProcessXor[SubconParsedType, SubconBuildTypes]: ...
|
||||
|
||||
class ProcessRotateLeft(
|
||||
Subconstruct[SubconParsedType, SubconBuildTypes, SubconParsedType, SubconParsedType]
|
||||
):
|
||||
def __new__(
|
||||
cls,
|
||||
amount: ConstantOrContextLambda2[int],
|
||||
group: ConstantOrContextLambda2[int],
|
||||
subcon: Construct[SubconParsedType, SubconBuildTypes],
|
||||
) -> ProcessRotateLeft[SubconParsedType, SubconBuildTypes]: ...
|
||||
|
||||
class Checksum(Construct[ParsedType, BuildTypes]):
|
||||
def __init__(
|
||||
self,
|
||||
checksumfield: Construct[ParsedType, BuildTypes],
|
||||
hashfunc: t.Callable[[bytes], BuildTypes],
|
||||
bytesfunc: t.Callable[[Context], bytes]
|
||||
) -> None: ...
|
||||
|
||||
|
||||
# ===============================================================================
|
||||
# lazy equivalents
|
||||
# ===============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue