def getfield(self, pkt, s):
        # type: (packet.Packet, str) -> Tuple[str, HPackStringsInterface]
        """
        @param packet.Packet pkt: the packet instance containing this field instance.  # noqa: E501
        @param str s: the string to parse this field from.
        @return (str, HPackStringsInterface): the remaining string after this field was carved out & the extracted  # noqa: E501
          value.
        @raise KeyError if "type_from" is not a field of pkt or its payloads.
        @raise InvalidEncodingException
        """
        tmp_len = self._length_from(pkt)
        t = pkt.getfieldval(self._type_from) == 1
        return s[tmp_len:], self._parse(t, s[:tmp_len])
def getfield ( self , pkt , s ) : tmp_len = self . _length_from ( pkt ) t = pkt . getfieldval ( self . _type_from ) == 1 return s [ tmp_len : ] , self . _parse ( t , s [ : tmp_len ] )
@param packet.Packet pkt: the packet instance containing this field instance.  # noqa: E501
        @param str s: the string to parse this field from.
        @return (str, HPackStringsInterface): the remaining string after this field was carved out & the extracted  # noqa: E501
          value.
        @raise KeyError if "type_from" is not a field of pkt or its payloads.
        @raise InvalidEncodingException