Java Integer Convert To fromInt(byte[] buffer, int pos, int i)

Here you can find the source of fromInt(byte[] buffer, int pos, int i)

Description

from Int

License

Apache License

Declaration

public static int fromInt(byte[] buffer, int pos, int i) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static int fromInt(byte[] buffer, int pos, int i) {
        buffer[pos] = (byte) (i >> 24);
        buffer[pos + 1] = (byte) ((i >> 16) & 255);
        buffer[pos + 2] = (byte) ((i >> 8) & 255);
        buffer[pos + 3] = (byte) (i & 255);
        return pos + 4;
    }//from  www .j  a va 2 s.c  o  m
}

Related

  1. convertIntToDWord(final int value)
  2. convertIntToLong(Integer intId)
  3. convertInttoMultiByte(int val)
  4. convertIntToTwoChar(int n)
  5. convertIntToUsignedBytes(int integer)
  6. fromInt(final int value, final int length)
  7. fromInt(int i)
  8. fromint(int i)
  9. fromInt(int input)