Class: PSD::UnicodeName

Inherits:
LayerInfo show all
Defined in:
lib/psd/layer_info/unicode_name.rb

Instance Attribute Summary

Attributes inherited from LayerInfo

#data

Instance Method Summary collapse

Methods inherited from LayerInfo

#initialize, #skip

Constructor Details

This class inherits a constructor from PSD::LayerInfo

Instance Method Details

#parseObject



7
8
9
10
11
12
13
14
15
# File 'lib/psd/layer_info/unicode_name.rb', line 7

def parse
  pos = @file.tell
  @data = @file.read_unicode_string

  # The name seems to be padded with null bytes. This is the easiest solution.
  @file.seek pos + @length

  return self
end