Class: WWMD::VSStubs::VSStringArray
- Inherits:
-
Object
- Object
- WWMD::VSStubs::VSStringArray
- Includes:
- WWMD::VSStubHelpers
- Defined in:
- lib/wwmd/viewstate/vs_stubs/vs_string_array.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #add(obj) ⇒ Object
- #from_xml ⇒ Object
-
#initialize ⇒ VSStringArray
constructor
A new instance of VSStringArray.
- #serialize ⇒ Object
- #to_xml ⇒ Object
Methods included from WWMD::VSStubHelpers
Methods included from WWMD::ViewStateUtils
#deserialize_type, #dlog, #magic?, #next_type, #offset, #putd, #read, #read_7bit_encoded_int, #read_double, #read_int, #read_int32, #read_raw_byte, #read_short, #read_string, #serialize_type, #slog, #throw, #write_7bit_encoded_int, #write_double, #write_int, #write_int32, #write_short
Constructor Details
#initialize ⇒ VSStringArray
Returns a new instance of VSStringArray.
7 8 9 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_array.rb', line 7 def initialize() @value = [] end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_array.rb', line 5 def value @value end |
Instance Method Details
#add(obj) ⇒ Object
11 12 13 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_array.rb', line 11 def add(obj) @value << obj end |
#from_xml ⇒ Object
34 35 36 37 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_array.rb', line 34 def from_xml # serliazed with VSString (for convenience) # make sure not to deserialize the opcode when you write this out end |
#serialize ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/wwmd/viewstate/vs_stubs/vs_string_array.rb', line 15 def serialize stack = super stack << self.write_7bit_encoded_int(self.size) self.value.each do |v| stack << self.write_7bit_encoded_int(v.size) stack << v end return stack end |