Contents

next()

Advances to the next byte and returns it, or nil if no next byte exists.

Declaration

mutating func next() -> UInt8?

Return Value

The next sequential byte in the raw buffer if another byte exists; otherwise, nil.

Discussion

Once nil has been returned, all subsequent calls return nil.