Method: Win32::SSPI::SecurityBuffer#initialize

Defined in:
lib/win32/sspi.rb

#initialize(buffer = nil) ⇒ SecurityBuffer

Returns a new instance of SecurityBuffer.



92
93
94
95
96
# File 'lib/win32/sspi.rb', line 92

def initialize(buffer = nil)
  @buffer = buffer || "\0" * TOKENBUFSIZE
  @bufferSize = @buffer.length
  @type = SECBUFFER_TOKEN
end