Search:

Type: Posts; User: fzr600

Search: Search took 0.27 seconds.

  1. Replies
    2
    Views
    694

    Re: java equivalent of the following c# code

    Actually I got it work.

    sw.writeShort(Short.reverseBytes( (

    short ) 100)); //id

    Thanks!
  2. Replies
    2
    Views
    694

    java equivalent of the following c# code

    How would I do the following in Java?

    sw.Write(Convert.ToInt16(100));

    I've tried:
    sw.writeShort(100);

    But it seems to order the bits wrong.

    Thanks,
Results 1 to 2 of 2