This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object FetchOffsetDetail { | |
def readFrom(buffer: ByteBuffer): FetchOffsetDetail = { | |
val topic = Utils.readShortString(buffer, "UTF-8") | |
val partitionsCount = buffer.getShort | |
val partitions = new Array[Int](partitionsCount) | |
for (i <- 0 until partitions.length) | |
partitions(i) = buffer.getInt | |
val offsetsCount = buffer.getShort | |
val offsets = new Array[Long](offsetsCount) | |
for (i <- 0 until offsets.length) |