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