readTwosComplementInt

fun Source<*>.readTwosComplementInt(nBytes: Int, lenient: Boolean): Int(source)

Consumes exactly nBytes from this source and interprets it as a signed Int

Throws

if too much or too little data is present