readInteger(endianness:as:)

    Read an integer off this ByteBuffer, move the reader index forward by the integer’s byte size and return the result.

    ByteBuffer-int.swift:33
    mutating func readInteger<T>(endianness: Endianness = .big, as: T.Type = T.self) -> T? where T : FixedWidthInteger

    Parameters

    endianness

    The endianness of the integer in this ByteBuffer (defaults to big endian).

    as

    the desired FixedWidthInteger type (optional parameter)

    Returns

    An integer value deserialized from this ByteBuffer or nil if there aren’t enough bytes readable.

    Other members in extension

    Types

    Typealiases

    Show implementation details (2)

    Hide implementation details

    Type members

    Instance members

    Show obsolete interfaces (3)

    Hide obsolete interfaces