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
bench9000-0.1 vendor/psd.rb/lib/psd/layer_info/unicode_name.rb
psd-2.1.2 lib/psd/layer_info/unicode_name.rb
psd-2.1.1 lib/psd/layer_info/unicode_name.rb
psd-2.1.0 lib/psd/layer_info/unicode_name.rb
psd-2.0.0 lib/psd/layer_info/unicode_name.rb
psd-1.5.0 lib/psd/layer_info/unicode_name.rb
psd-1.4.5 lib/psd/layer_info/unicode_name.rb
psd-1.4.4 lib/psd/layer_info/unicode_name.rb
psd-1.4.3 lib/psd/layer_info/unicode_name.rb
psd-1.4.2 lib/psd/layer_info/unicode_name.rb
psd-1.4.1 lib/psd/layer_info/unicode_name.rb
psd-1.4.0 lib/psd/layer_info/unicode_name.rb
psd-1.3.3 lib/psd/layer_info/unicode_name.rb
psd-1.3.2 lib/psd/layer_info/unicode_name.rb
psd-1.3.0 lib/psd/layer_info/unicode_name.rb
psd-1.2.2 lib/psd/layer_info/unicode_name.rb
psd-1.2.1 lib/psd/layer_info/unicode_name.rb
psd-1.2.0 lib/psd/layer_info/unicode_name.rb
psd-1.1.1 lib/psd/layer_info/unicode_name.rb
psd-1.1.0 lib/psd/layer_info/unicode_name.rb