class Fzeet::Windows::BSTR

Attributes

pointer[R]

Public Class Methods

[](s) { |bstr;| ... } click to toggle source
# File lib/fzeet/windows/oleaut/Bstr.rb, line 6
def self.[](s)
        bstr = new(Windows.SysAllocString("#{s}\0".encode('utf-16le')))

        if block_given?
                yield bstr; bstr.dispose; return nil
        end

        bstr
end
Also aliased as: from
from(s)
Alias for: []
new(pointer) click to toggle source
# File lib/fzeet/windows/oleaut/Bstr.rb, line 20
def initialize(pointer) @pointer = pointer end

Public Instance Methods

dispose()
Alias for: free
free() click to toggle source
# File lib/fzeet/windows/oleaut/Bstr.rb, line 24
def free; Windows.SysFreeString(@pointer) end
Also aliased as: dispose
length() click to toggle source
# File lib/fzeet/windows/oleaut/Bstr.rb, line 27
def length; Windows.SysStringLen(@pointer) end
Also aliased as: size
multibyte() click to toggle source
# File lib/fzeet/windows/oleaut/Bstr.rb, line 30
def multibyte; Windows.WCSTOMBS(@pointer) end
size()
Alias for: length