Method: Puppet::Util::Windows::String.wide_string
- Defined in:
- lib/puppet/util/windows/string.rb
.wide_string(str) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 9 10 11 |
# File 'lib/puppet/util/windows/string.rb', line 6 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 |