Class: Pocolog::BlockStream::BlockHeader
- Inherits:
-
Struct
- Object
- Struct
- Pocolog::BlockStream::BlockHeader
- Defined in:
- lib/pocolog/block_stream.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#payload_size ⇒ Object
Returns the value of attribute payload_size.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
-
#stream_index ⇒ Object
Returns the value of attribute stream_index.
Class Method Summary collapse
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
143 144 145 |
# File 'lib/pocolog/block_stream.rb', line 143 def kind @kind end |
#payload_size ⇒ Object
Returns the value of attribute payload_size
143 144 145 |
# File 'lib/pocolog/block_stream.rb', line 143 def payload_size @payload_size end |
#raw_data ⇒ Object
Returns the value of attribute raw_data
143 144 145 |
# File 'lib/pocolog/block_stream.rb', line 143 def raw_data @raw_data end |
#stream_index ⇒ Object
Returns the value of attribute stream_index
143 144 145 |
# File 'lib/pocolog/block_stream.rb', line 143 def stream_index @stream_index end |
Class Method Details
.parse(raw_header) ⇒ Object
144 145 146 147 |
# File 'lib/pocolog/block_stream.rb', line 144 def self.parse(raw_header) type, index, payload_size = raw_header.unpack('CxvV') new(type, index, payload_size, raw_header) end |