Method: Protocol::HTTP2::Priority.unpack

Defined in:
lib/protocol/http2/priority_frame.rb

.unpack(data) ⇒ Object



29
30
31
32
33
# File 'lib/protocol/http2/priority_frame.rb', line 29

def self.unpack(data)
  stream_dependency, weight = data.unpack(FORMAT)
  
  return self.new(stream_dependency & EXCLUSIVE != 0, stream_dependency & ~EXCLUSIVE, weight)
end