class Origami::XRefToCompressedObject
An xref poiting to an Object
embedded in an ObjectStream
.
Attributes
index[RW]
objstmno[RW]
Public Class Methods
new(objstmno, index)
click to toggle source
# File lib/origami/xreftable.rb, line 336 def initialize(objstmno, index) @objstmno = objstmno @index = index end
Public Instance Methods
free?()
click to toggle source
# File lib/origami/xreftable.rb, line 354 def free?; false end
to_xrefstm_data(type_w, field1_w, field2_w)
click to toggle source
# File lib/origami/xreftable.rb, line 341 def to_xrefstm_data(type_w, field1_w, field2_w) type_w <<= 3 field1_w <<= 3 field2_w <<= 3 type = "\002".unpack("B#{type_w}")[0] objstmno = @objstmno.to_s(2).rjust(field1_w, '0') index = @index.to_s(2).rjust(field2_w, '0') [ type , objstmno, index ].pack("B#{type_w}B#{field1_w}B#{field2_w}") end
used?()
click to toggle source
# File lib/origami/xreftable.rb, line 353 def used?; true end