binary-streams / loggersoft.kotlin.streams / ByteArea / intersection

intersection

fun intersection(other: ByteArea): Pair<Int, Int>?

Returns intersection between two ByteArea over the same buffer.

Return
Pair, where Pair.first is the size of the intersection and Pair.second is offset or null if areas haven't an intersection.