* Read Int8 value from the field model buffer * @this {!FieldModelBase} * @param {!number} offset Offset * @returns {!number} Int8 value
(offset)
| 649 | * @returns {!number} Int8 value |
| 650 | */ |
| 651 | readInt8 (offset) { |
| 652 | offset = offset >>> 0 |
| 653 | offset += this._buffer.offset |
| 654 | this._buffer.checkOffset(offset, 1) |
| 655 | if ((this._buffer.buffer[offset] & 0x80) === 0) { |
| 656 | return (this._buffer.buffer[offset]) |
| 657 | } |
| 658 | return ((0xFF - this._buffer.buffer[offset] + 1) * -1) |
| 659 | } |
| 660 | |
| 661 | /** |
| 662 | * Read UInt8 value from the field model buffer |
no test coverage detected