module Puppet::Util::Windows::String
Public Class Methods
wide_string(str)
click to toggle source
# File lib/puppet/util/windows/string.rb 5 def wide_string(str) 6 # if given a nil string, assume caller wants to pass a nil pointer to win32 7 return nil if str.nil? 8 9 str.encode('UTF-16LE') 10 end
Private Instance Methods
wide_string(str)
click to toggle source
# File lib/puppet/util/windows/string.rb 5 def wide_string(str) 6 # if given a nil string, assume caller wants to pass a nil pointer to win32 7 return nil if str.nil? 8 9 str.encode('UTF-16LE') 10 end