Class: Chef::ReservedNames::Win32::API::Crypto::CRYPT_INTEGER_BLOB

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/chef/win32/api/crypto.rb

Instance Method Summary collapse

Constructor Details

#initialize(str = nil) ⇒ CRYPT_INTEGER_BLOB

Returns a new instance of CRYPT_INTEGER_BLOB.



40
41
42
43
44
45
46
# File 'lib/chef/win32/api/crypto.rb', line 40

def initialize(str = nil)
  super(nil)
  if str
    self[:pbData] = FFI::MemoryPointer.from_string(str)
    self[:cbData] = str.bytesize
  end
end