Sha256: 9f8248905063223df53cc36a958bd613e4146958d73b1433aa11624878f38454
Contents?: true
Size: 291 Bytes
Versions: 5
Compression:
Stored size: 291 Bytes
Contents
# Helper class that parses a pascal string, which is a # string that has it's length prepended to it. class PascalString < BinData::Record uint8 :len, value: lambda { data.length } string :data, read_length: :len def get self.data end def set(v) self.data = v end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
psd-0.4.0 | lib/psd/pascal_string.rb |
psd-0.3.5 | lib/psd/pascal_string.rb |
psd-0.3.4 | lib/psd/pascal_string.rb |
psd-0.3.3 | lib/psd/pascal_string.rb |
psd-0.3.2 | lib/psd/pascal_string.rb |