Sha256: 5e3e4eb473fad010866efeb59e3597d9f2959980d2f12b2cb62335452f6db394

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

module WWMD
  class VSBinarySerialized < VSClassHelpers
    attr_accessor :value

    def initialize()
      @value = ''
    end

    def set(str)
      @value = str
    end

    def serialize
      stack = super
      stack << self.write_7bit_encoded_int(self.size)
      stack << self.value
      return stack
    end

    def to_xml
      xml = super
      xml.add_attribute("encoding","base64")
      xml.add_text(self.value.b64e)
      xml
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
miketracy-wwmd-0.2.11 lib/wwmd/viewstate/vs_binary_serialized.rb
miketracy-wwmd-0.2.12 lib/wwmd/viewstate/vs_binary_serialized.rb
miketracy-wwmd-0.2.14 lib/wwmd/viewstate/vs_binary_serialized.rb
miketracy-wwmd-0.2.15 lib/wwmd/viewstate/vs_binary_serialized.rb
miketracy-wwmd-0.2.16 lib/wwmd/viewstate/vs_binary_serialized.rb