def segments_by_type(type, &block)
      type = Util.to_constant(Constants::PT, type)
      Util.select_by_type(each_segments, type, &block)
    end
def segments_by_type(type, &block)
      type = Util.to_constant(Constants::PT, type)
      Util.select_by_type(each_segments, type, &block)
    end
Fetch all segments with specific type.

 If you want to find only one segment,
 use {#segment_by_type} instead.
 This method accept giving block.
 @param [Integer, Symbol, String] type
   The type needed, same format as {#segment_by_type}.
 @yieldparam [ELFTools::Segments::Segment] segment A segment in specific type.
 @yieldreturn [void]
 @return [Array<ELFTools::Segments::Segment>] The target segments.