Class: Rubycc::ObjFile::ArMember
- Inherits:
-
Struct
- Object
- Struct
- Rubycc::ObjFile::ArMember
- 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
-
#data ⇒ Object
Returns the value of attribute data.
-
#gid ⇒ Object
Returns the value of attribute gid.
-
#header_offset ⇒ Object
Returns the value of attribute header_offset.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#mtime ⇒ Object
Returns the value of attribute mtime.
-
#name ⇒ Object
Returns the value of attribute name.
-
#special ⇒ Object
Returns the value of attribute special.
-
#uid ⇒ Object
Returns the value of attribute uid.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
23 24 25 |
# File 'lib/rubycc/objfile/ar_archive.rb', line 23 def data @data end |
#gid ⇒ Object
Returns the value of attribute gid
23 24 25 |
# File 'lib/rubycc/objfile/ar_archive.rb', line 23 def gid @gid end |
#header_offset ⇒ Object
Returns the value of attribute header_offset
23 24 25 |
# File 'lib/rubycc/objfile/ar_archive.rb', line 23 def header_offset @header_offset end |
#mode ⇒ Object
Returns the value of attribute mode
23 24 25 |
# File 'lib/rubycc/objfile/ar_archive.rb', line 23 def mode @mode end |
#mtime ⇒ Object
Returns the value of attribute mtime
23 24 25 |
# File 'lib/rubycc/objfile/ar_archive.rb', line 23 def mtime @mtime end |
#name ⇒ Object
Returns the value of attribute name
23 24 25 |
# File 'lib/rubycc/objfile/ar_archive.rb', line 23 def name @name end |
#special ⇒ Object
Returns the value of attribute special
23 24 25 |
# File 'lib/rubycc/objfile/ar_archive.rb', line 23 def special @special end |
#uid ⇒ Object
Returns the value of attribute uid
23 24 25 |
# File 'lib/rubycc/objfile/ar_archive.rb', line 23 def uid @uid end |
Instance Method Details
#special? ⇒ Boolean
27 |
# File 'lib/rubycc/objfile/ar_archive.rb', line 27 def special? = special |