Class: RubyTDMS::DataTypes::SingleWithUnit

Inherits:
Base
  • Object
show all
Defined in:
lib/ruby_tdms/data_types/single_with_unit.rb

Constant Summary collapse

ID =
0x19
LENGTH_IN_BYTES =
4

Instance Attribute Summary

Attributes inherited from Base

#value

Class Method Summary collapse

Methods inherited from Base

#initialize, subclasses

Constructor Details

This class inherits a constructor from RubyTDMS::DataTypes::Base

Class Method Details

.read_from_stream(tdms_file, big_endian) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/ruby_tdms/data_types/single_with_unit.rb', line 10

def self.read_from_stream(tdms_file, big_endian)
	if big_endian
		new tdms_file.read_single_be
	else
		new tdms_file.read_single
	end
end