code: public static boolean isSegmented(Name name, byte marker) {
      return name.size() > 0 && name.get(-1).getValue().buf().get(0) == marker;
    }
docs: Determine if a name is segmented, i.e. if it ends with the correct marker type.
  
  @param name the name of a packet
  @param marker the marker type (the initial byte of the component)
  @return true if the name is segmented