Class: HKeyPerfDataReader::ConvertedType::PerfDataBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/hkey_perf_data_converted_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_perf_data_block) ⇒ PerfDataBlock

Returns a new instance of PerfDataBlock.



27
28
29
30
31
32
33
34
# File 'lib/fluent/plugin/hkey_perf_data_converted_type.rb', line 27

def initialize(raw_perf_data_block)
  @signature = raw_perf_data_block.signature.pack("c*")
  @version = raw_perf_data_block.version
  @revision = raw_perf_data_block.revision
  @totalByteLength = raw_perf_data_block.totalByteLength
  @headerLength = raw_perf_data_block.headerLength
  @numObjectTypes = raw_perf_data_block.numObjectTypes
end

Instance Attribute Details

#headerLengthObject (readonly)

Returns the value of attribute headerLength.



24
25
26
# File 'lib/fluent/plugin/hkey_perf_data_converted_type.rb', line 24

def headerLength
  @headerLength
end

#numObjectTypesObject (readonly)

Returns the value of attribute numObjectTypes.



25
26
27
# File 'lib/fluent/plugin/hkey_perf_data_converted_type.rb', line 25

def numObjectTypes
  @numObjectTypes
end

#revisionObject (readonly)

Returns the value of attribute revision.



22
23
24
# File 'lib/fluent/plugin/hkey_perf_data_converted_type.rb', line 22

def revision
  @revision
end

#signatureObject (readonly)

Returns the value of attribute signature.



20
21
22
# File 'lib/fluent/plugin/hkey_perf_data_converted_type.rb', line 20

def signature
  @signature
end

#totalByteLengthObject (readonly)

Returns the value of attribute totalByteLength.



23
24
25
# File 'lib/fluent/plugin/hkey_perf_data_converted_type.rb', line 23

def totalByteLength
  @totalByteLength
end

#versionObject (readonly)

Returns the value of attribute version.



21
22
23
# File 'lib/fluent/plugin/hkey_perf_data_converted_type.rb', line 21

def version
  @version
end