MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / __init__

Method __init__

src/ext/makerbot_driver/Encoder/Packet.py:98–104  ·  view source on GitHub ↗

Initialize the packet decoder

(self)

Source from the content-addressed store, hash-verified

96 each packet, then extracts and returns the payload.
97 """
98 def __init__(self):
99 """
100 Initialize the packet decoder
101 """
102 self.state = 'WAIT_FOR_HEADER'
103 self.payload = bytearray()
104 self.expected_length = 0
105
106 def parse_byte(self, byte):
107 """

Callers

nothing calls this directly

Calls 1

bytearrayClass · 0.85

Tested by

no test coverage detected