Method: PSD::UnicodeName#parse

Defined in:
lib/psd/layer/info/unicode_name.rb

#parseObject



9
10
11
12
13
14
15
16
17
# File 'lib/psd/layer/info/unicode_name.rb', line 9

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