Class: FFI::Pointer

Inherits:
Object show all
Defined in:
lib/chef/win32/unicode.rb

Instance Method Summary collapse

Instance Method Details

#read_wstring(num_wchars) ⇒ Object



33
34
35
# File 'lib/chef/win32/unicode.rb', line 33

def read_wstring(num_wchars)
  Chef::ReservedNames::Win32::Unicode.wide_to_utf8(self.get_bytes(0, num_wchars*2))
end