Search:

Type: Posts; User: fzr600

Search: Search took 0.07 seconds.

  1. Replies
    2
    Views
    1,928

    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
    1,928

    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