writeShort method

void writeShort(
  1. int short
)

Write a short(16 bit)

Implementation

void writeShort(int short) {
  writeByte(short >> 8);
  writeByte(short & 0xFF);
}