Class: ClamAV::Wrappers::NullTerminationWrapper
- Inherits:
-
ClamAV::Wrapper
- Object
- ClamAV::Wrapper
- ClamAV::Wrappers::NullTerminationWrapper
- Defined in:
- lib/clamav/wrappers/null_termination_wrapper.rb
Instance Method Summary collapse
Methods inherited from ClamAV::Wrapper
Instance Method Details
#read_response(socket) ⇒ Object
26 27 28 |
# File 'lib/clamav/wrappers/null_termination_wrapper.rb', line 26 def read_response(socket) read_until(socket, "\0") end |
#wrap_request(request) ⇒ Object
22 23 24 |
# File 'lib/clamav/wrappers/null_termination_wrapper.rb', line 22 def wrap_request(request) "z#{request}\0" end |