Class: Mathtype::Mtef16
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- Mathtype::Mtef16
- Defined in:
- lib/records/bintypes.rb
Instance Method Summary collapse
Instance Method Details
permalink #get ⇒ Object
[View source]
6 |
# File 'lib/records/bintypes.rb', line 6 def get; (high << 8) + low end |
permalink #gethigh ⇒ Object
[View source]
10 11 12 |
# File 'lib/records/bintypes.rb', line 10 def gethigh self.high end |
permalink #getlow ⇒ Object
[View source]
7 8 9 |
# File 'lib/records/bintypes.rb', line 7 def getlow self.low end |
permalink #set(v) ⇒ Object
[View source]
13 14 15 16 |
# File 'lib/records/bintypes.rb', line 13 def set(v) self.low = v & 0xFF self.high = (v & 0xFF00) >> 8 end |