Skip to content

Int

Int

from_bytes classmethod

from_bytes(bytes_: bytes, ver: Version = Version(0)) -> int

from_file classmethod

from_file(filepath: str) -> int

from_stream classmethod

from_stream(value: ByteStream, ver: Version = Version(0)) -> int

to_bytes classmethod

to_bytes(value: int) -> bytes

to_file classmethod

to_file(filepath: str, value: int)

i8

Bases: Int

[De]serialize an signed int with a width of 1 bytes

i16

Bases: Int

[De]serialize an signed int with a width of 2 bytes

i32

Bases: Int

[De]serialize an signed int with a width of 4 bytes

i64

Bases: Int

[De]serialize an signed int with a width of 8 bytes

i128

Bases: Int

[De]serialize an signed int with a width of 16 bytes

u8

Bases: Int

[De]serialize an unsigned int with a width of 1 bytes

u16

Bases: Int

[De]serialize an unsigned int with a width of 2 bytes

u32

Bases: Int

[De]serialize an unsigned int with a width of 4 bytes

u64

Bases: Int

[De]serialize an unsigned int with a width of 8 bytes

u128

Bases: Int

[De]serialize an unsigned int with a width of 16 bytes