Module: Puppet::Util::Windows::String

Included in:
Process, File, Process, Security, Service, User
Defined in:
lib/puppet/util/windows/string.rb

Class Method Summary collapse

Class Method Details

.wide_string(str) ⇒ Object



7
8
9
10
11
12
# File 'lib/puppet/util/windows/string.rb', line 7

def wide_string(str)
  # if given a nil string, assume caller wants to pass a nil pointer to win32
  return nil if str.nil?

  str.encode('UTF-16LE')
end