Method: LEON::StringBuffer#readInt8

Defined in:
lib/string-buffer.rb

#readInt8(i) ⇒ Object



248
249
250
251
252
253
254
# File 'lib/string-buffer.rb', line 248

def readInt8(i)
  v = readUInt8(i)
  if (0x80 & v) != 0
    return -StringBuffer.complement(v, 8)
  end
  return v
end