OMG: imperative ;-)

How about something like:

    def next(in: Array[Byte], pos: Int): (Int, Int) = (in(pos) & 0xFF, pos + 1)

...or just using foreach on the array?