writeInt

fun Buffer.writeInt(endianness: Endianness, int: Int)

Writes int using endianness (little or big endian).