Class: MobyController::QT::Comms::Inflator

Inherits:
Object
  • Object
show all
Defined in:
lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/communication.rb

Class Method Summary collapse

Class Method Details

.inflate(response) ⇒ Object



33
34
35
36
37
38
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/communication.rb', line 33

def self.inflate( response )

  # strip 4 extra bytes written by qt compression, return empty string if no raw data found, otherwise inflate it
  ( raw_data = response[ 4 .. -1 ] ).empty? ? "" : Zlib::Inflate.inflate( raw_data )

end