Class: PSD::Resource

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/psd/resource.rb

Overview

Definition for a single Resource record.

Most of the resources are options/preferences set by the user or automatically by Photoshop.

Instance Method Summary collapse

Instance Method Details

#name_lengthObject


Really weird padding business



19
20
21
# File 'lib/psd/resource.rb', line 19

def name_length
  Util.pad2(name_len + 1) - 1
end

#resource_sizeObject



23
24
25
# File 'lib/psd/resource.rb', line 23

def resource_size
  Util.pad2(res_size)
end