class WinFFI::WideInlineString
Attributes
length[R]
native_type[R]
size[R]
Public Class Methods
new(size)
click to toggle source
# File lib/win-ffi/core/wide_inline_string.rb, line 12 def initialize(size) @size = size @native_type = FFI::ArrayType.new(WinFFI.find_type(:tchar), size) end
Public Instance Methods
from_native(value, _context)
click to toggle source
# File lib/win-ffi/core/wide_inline_string.rb, line 22 def from_native(value, _context) String.from_byte_array(value.to_a) end
to_native(value, _context)
click to toggle source
# File lib/win-ffi/core/wide_inline_string.rb, line 18 def to_native(value, _context) value.to_byte_array end