Method: Rex::Proto::SMB::SimpleClient::OpenPipe#read_buffer

Defined in:
lib/rex/proto/smb/simpleclient/open_pipe.rb

#read_buffer(length, offset = 0) ⇒ Object



19
20
21
22
# File 'lib/rex/proto/smb/simpleclient/open_pipe.rb', line 19

def read_buffer(length, offset=0)
  length ||= @buff.length
  @buff.slice!(0, length)
end