david942j/rbelftools

View on GitHub
lib/elftools/sections/null_section.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require 'elftools/sections/section'

module ELFTools
  module Sections
    # Class of null section.
    # Null section is for specific the end
    # of linked list (+sh_link+) between sections.
    class NullSection < Section
      # Is this a null section?
      # @return [Boolean] Yes it is.
      def null?
        true
      end
    end
  end
end