Sha256: 6b05674f5205d0230bd90f24af10b491e14a00aa0c7ee54c5a71dc0f2376639a

Contents?: true

Size: 323 Bytes

Versions: 23

Compression:

Stored size: 323 Bytes

Contents

require_relative '../layer_info'

class PSD
  class UnicodeName < LayerInfo
    @key = 'luni'

    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
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
psd-1.0.0 lib/psd/layer_info/unicode_name.rb
psd-0.4.2 lib/psd/layer_info/unicode_name.rb
psd-0.4.1 lib/psd/layer_info/unicode_name.rb