Android Byte Array Encode putReverseBytesInt(byte[] bb, int x, int index)

Here you can find the source of putReverseBytesInt(byte[] bb, int x, int index)

Description

put Reverse Bytes Int

Declaration

public static void putReverseBytesInt(byte[] bb, int x, int index) 

Method Source Code

//package com.java2s;

public class Main {

    public static void putReverseBytesInt(byte[] bb, int x, int index) {
        bb[index + 3] = (byte) (x >> 24);
        bb[index + 2] = (byte) (x >> 16);
        bb[index + 1] = (byte) (x >> 8);
        bb[index + 0] = (byte) (x >> 0);
    }//from www  . jav a 2s  .c om
}

Related

  1. putDouble(byte[] bb, double x, int index)
  2. putInt(int value, int offset, byte[] byteArr)
  3. putInts(int[] fromInts, byte[] toBytes)
  4. putLong(byte[] bb, long x, int index)
  5. putOrCopyString(String fromString, byte[] toBytes)
  6. putReverseBytesLong(byte[] bb, long x, int index)