class documentation

class tagWIFINetmask: (source)

Constructor: tagWIFINetmask.unpack(data)

View In Hierarchy

Represents a WiFi network mask configuration.

Class Method unpack Unpacks a bytes sequence into a tagWIFINetmask object.
Method pack Packs the tagWIFINetmask object into a bytes sequence.
Class Variable addr Undocumented
def unpack(cls, data: bytes) -> tagWIFINetmask: (source)

Unpacks a bytes sequence into a tagWIFINetmask object.

Parameters
data:bytesThe bytes to unpack, expected to be 4 bytes (4 uint8s).
Returns
tagWIFINetmaskA tagWIFINetmask object.
Raises
struct.errorIf the input bytes are not the expected size (4 bytes).
def pack(self) -> bytes: (source)

Packs the tagWIFINetmask object into a bytes sequence.

Packs the netmask address bytes (4 uint8s) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (4 bytes).
Raises
ValueErrorIf the addr list does not contain exactly 4 elements.

Undocumented