bytes / org.apache.tuweni.bytes / Bytes / commonPrefix

commonPrefix

open fun commonPrefix(other: Bytes): Bytes (source)

Return a slice over the common prefix between this set of bytes and another.

Parameters

other - The bytes to compare to.

Return
A slice covering the common prefix.