Class: WriteAccessRecord
- Inherits:
-
BiffRecord
- Object
- BiffRecord
- WriteAccessRecord
- Defined in:
- lib/surpass/biff_record.rb
Overview
This record is part of the file protection. It contains the name of the user that has saved the file. The user name is always stored as an equal-sized string. All unused characters after the name are filled with space characters. It is not required to write the mentioned string length. Every other length will be accepted too.
Constant Summary collapse
- RECORD_ID =
0x005C
Constants inherited from BiffRecord
BiffRecord::BIFF_LIMIT, BiffRecord::CONTINUE_RECORD_ID
Instance Attribute Summary
Attributes inherited from BiffRecord
Instance Method Summary collapse
-
#initialize(owner) ⇒ WriteAccessRecord
constructor
TODO Can we extend this to 0x70? I think 0x30 is a holdover from Biff7 but 112 chars is Biff8.
Methods inherited from BiffRecord
Constructor Details
#initialize(owner) ⇒ WriteAccessRecord
TODO Can we extend this to 0x70? I think 0x30 is a holdover from Biff7 but 112 chars is Biff8.
198 199 200 |
# File 'lib/surpass/biff_record.rb', line 198 def initialize(owner) @record_data = [owner[0, 0x30]].pack('A112') end |