Skip to content

Commit

Permalink
Removed position reset in the getByteArray method in ByteReaderExtens…
Browse files Browse the repository at this point in the history
…ions

Signed-off-by: jbouffard <jbouffard@azavea.com>
  • Loading branch information
jbouffard committed Dec 12, 2016
1 parent d9515ed commit 479878e
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -60,14 +60,11 @@ trait ByteReaderExtensions {
arr(i) = ub2s(bb.get)
}
} else {
val oldPos = byteReader.position
byteReader.position(valueOffset)

cfor(0)(_ < length, _ + 1) { i =>
arr(i) = ub2s(byteReader.get)
}

byteReader.position(oldPos)
}

arr
Expand Down

0 comments on commit 479878e

Please sign in to comment.