Basic TLV parser