public static byte[] writeShort(short v, byte[] b, int offset) {
        b[offset] = (byte) v;
        b[offset + 1] = (byte) (v >> 8);

        return b;
    }
public static byte [ ] writeShort ( short v , byte [ ] b , int offset ) { b [ offset ] = ( byte ) v ; b [ offset + 1 ] = ( byte ) ( v > > 8 ) ; return b ; }
Write a 16 bit short as LITTLE_ENDIAN to
the given array <code>b</code> at offset <code>offset</code>.

@param v the short to write
@param b the byte array to write to
@param offset the offset at which to start writing in the array