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:861
    @discardableResult mutating func discardReadBytes() -> Bool

    Returns

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

    Other members in extension

    Types

    Typealiases

    Show implementation details (2)

    Hide implementation details

    Type members

    Instance members

    Show obsolete interfaces (3)

    Hide obsolete interfaces