toByteArray

Converts an Int to an array of bytes so that it can be sent over the TCP socket.

Return

Byte array representation of the given Int


Converts a Short to an array of bytes so that it can be sent over the TCP socket.

Return

Byte array representation of the given Short