Class: Rubycc::ObjFile::ArMember

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubycc/objfile/ar_archive.rb

Overview

A single archive member: its resolved name, raw data bytes, and the four POSIX metadata fields (mtime/uid/gid/mode) the 60-byte header carries. header_offset is the byte position of that header in the whole image — the value the symbol index points at, so a symbol can be mapped back to the member that defines it. special? marks the two reserved members (/ symbol table, // name table) that are archive metadata rather than real files, so callers listing or extracting members can skip them.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



23
24
25
# File 'lib/rubycc/objfile/ar_archive.rb', line 23

def data
  @data
end

#gidObject

Returns the value of attribute gid

Returns:

  • (Object)

    the current value of gid



23
24
25
# File 'lib/rubycc/objfile/ar_archive.rb', line 23

def gid
  @gid
end

#header_offsetObject

Returns the value of attribute header_offset

Returns:

  • (Object)

    the current value of header_offset



23
24
25
# File 'lib/rubycc/objfile/ar_archive.rb', line 23

def header_offset
  @header_offset
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



23
24
25
# File 'lib/rubycc/objfile/ar_archive.rb', line 23

def mode
  @mode
end

#mtimeObject

Returns the value of attribute mtime

Returns:

  • (Object)

    the current value of mtime



23
24
25
# File 'lib/rubycc/objfile/ar_archive.rb', line 23

def mtime
  @mtime
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



23
24
25
# File 'lib/rubycc/objfile/ar_archive.rb', line 23

def name
  @name
end

#specialObject

Returns the value of attribute special

Returns:

  • (Object)

    the current value of special



23
24
25
# File 'lib/rubycc/objfile/ar_archive.rb', line 23

def special
  @special
end

#uidObject

Returns the value of attribute uid

Returns:

  • (Object)

    the current value of uid



23
24
25
# File 'lib/rubycc/objfile/ar_archive.rb', line 23

def uid
  @uid
end

Instance Method Details

#special?Boolean

Returns:

  • (Boolean)


27
# File 'lib/rubycc/objfile/ar_archive.rb', line 27

def special? = special