p2

fun ByteBuf.p2(value: Int): ByteBuf

Writes a short with the value of value to this buffer. The 16 high-order bits of the specified value are ignored.