writeInteger(_:endianness:as:)

    Write integer into this ByteBuffer, moving the writer index forward appropriately.

    ByteBuffer-int.swift:85
    @discardableResult mutating func writeInteger<T>(_ integer: T, endianness: Endianness = .big, as: T.Type = T.self) -> Int where T : FixedWidthInteger

    Parameters

    integer

    The integer to serialize.

    endianness

    The endianness to use, defaults to big endian.

    as

    the desired FixedWidthInteger type (optional parameter)

    Returns

    The number of bytes written.

    Other members in extension

    Types

    Typealiases

    Show implementation details (2)

    Hide implementation details

    Type members

    Instance members

    Show obsolete interfaces (3)

    Hide obsolete interfaces