class WinFFI::WideStringPointer

Public Class Methods

new(size) click to toggle source

TODO

# File lib/win-ffi/core/wide_string_pointer.rb, line 6
def initialize(size)
  @size = size
end

Public Instance Methods

from_native(pointer, _context) click to toggle source
# File lib/win-ffi/core/wide_string_pointer.rb, line 14
def from_native(pointer, _context)
  pointer.read_bytes(@size)
end
to_native(value, _context) click to toggle source
# File lib/win-ffi/core/wide_string_pointer.rb, line 10
def to_native(value, _context)
  value.address
end