class CFPropertyList::CFData
This class contains binary data values
def decoded_value
def decoded_value return Base64.decode64(@value) end
def initialize(value=nil,format=DATA_BASE64)
def initialize(value=nil,format=DATA_BASE64) if(format == DATA_RAW) then @value = Base64.encode64(value) else @value = value end end
def to_binary(bplist)
def to_binary(bplist) return bplist.data_to_binary(decoded_value()) end
def to_xml
def to_xml return LibXML::XML::Node.new('data') << LibXML::XML::Node.new_text(@value) end