code: def decode(self, bytes):
          
  
          self.buffer = bytes
          self._pos = 0
  
          Packet = identifier.get_packet_from_id(self._read_variunt())
  
          # unknown packets will be None from the identifier
          if Packet is None:
              return None
  
          packet = Packet()
          packet.ParseFromString(self.remaining_bytes())
          return packet
docs: Decodes the packet off the byte string.