discardReadBytes

Discard the bytes before the reader index. The byte at index readerIndex before calling this method will be at index 0 after the call returns.

ByteBuffer-core.swift:908
@discardableResult mutating func discardReadBytes() -> Bool

Returns

true if one or more bytes have been discarded, false if there are no bytes to discard.