Class: MTP::Properties::Forms::ByteArray

Inherits:
None
  • Object
show all
Defined in:
lib/mtp/properties.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from None

#pack, #unpack

Constructor Details

#initialize(form, dts) ⇒ ByteArray

Returns a new instance of ByteArray.



206
207
208
# File 'lib/mtp/properties.rb', line 206

def initialize(form, dts)
  @max_length = form.unpack("S")
end

Instance Attribute Details

#max_lengthObject (readonly)

Returns the value of attribute max_length.



205
206
207
# File 'lib/mtp/properties.rb', line 205

def max_length
  @max_length
end