Section

public struct Section

A Section represents one of the binary sections in an object file.

  • The section’s declared name.

    Declaration

    Swift

    public let name: String
  • The size of the contents of the section.

    Declaration

    Swift

    public let size: Int
  • The raw contents of the section.

    Declaration

    Swift

    public let contents: UnsafeBufferPointer<CChar>
  • The address of the section in the object file.

    Declaration

    Swift

    public let address: Int
  • Returns a sequence of all the relocations in this object file.

    Declaration

    Swift

    public var relocations: RelocationSequence { get }
  • Returns whether a symbol matching the given Symbol can be found in this section.

    Declaration

    Swift

    public func contains(symbol: Symbol) -> Bool