Skip to content

Commit

Permalink
getSignedByteArray goes back to its old position after reading
Browse files Browse the repository at this point in the history
Signed-off-by: jbouffard <jbouffard@azavea.com>
  • Loading branch information
jbouffard committed Jun 30, 2017
1 parent 4991fed commit 23d2e84
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -194,8 +194,10 @@ trait ByteReaderExtensions {
}
arr
} else {
val oldPosition = byteReader.position
byteReader.position(offset)
val arr = byteReader.getBytes(len)
byteReader.position(oldPosition)
arr
}
}
Expand Down

0 comments on commit 23d2e84

Please sign in to comment.