feat: add Python API type definitions

This commit is contained in:
Shunsuke Shibayama 2023-05-03 00:54:05 +09:00
parent 3436b5eb02
commit c4a0efae08
10 changed files with 98 additions and 2 deletions

View file

@ -0,0 +1,11 @@
.Struct: ClassType
.Struct.
__call__: (format: Str) -> .Struct
format: Str
size: Nat
pack: (self: .Struct, *values: Obj) -> Bytes
unpack: (self: .Struct, bytes: Bytes) -> Obj
.pack: (format: Str, *values: Obj) -> Bytes
.unpack: (format: Str, bytes: Bytes) -> Obj
.calcsize: (format: Str) -> Nat