def METHOD_NAME(self):
    self.len = None  # None when waiting for a length to be sent)
    self.separator = -1  # -1 when not yet detected (str.find)
    self.index = 0  # relative to the buffer
    self.buffer = bytearray(NetstringProtocol.BASE_BUFFER)