Java ByteBuffer Put putIntLSBMSB(ByteBuffer byteBuffer, int value)

Here you can find the source of putIntLSBMSB(ByteBuffer byteBuffer, int value)

Description

put Int LSBMSB

License

Open Source License

Declaration

public static void putIntLSBMSB(ByteBuffer byteBuffer, int value) 

Method Source Code


//package com.java2s;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public class Main {
    public static void putIntLSBMSB(ByteBuffer byteBuffer, int value) {
        byteBuffer.order(ByteOrder.LITTLE_ENDIAN).putInt(value);
        byteBuffer.order(ByteOrder.BIG_ENDIAN).putInt(value);
    }// w  w  w. j a  va2 s  . co  m
}

Related

  1. putInt(final ByteBuffer buffer, int value)
  2. putInt(int i, ByteBuffer buffer)
  3. putIntArray(int ints[], ByteBuffer bb)
  4. putIntByteBuffer(ByteBuffer buf, int b)
  5. putIntByteBuffer(ByteBuffer buf, int b)
  6. putNAL(ByteBuffer codecPrivate, ByteBuffer byteBuffer, int nalType)
  7. putNullTerminal(ByteBuffer buffer)
  8. putObject(ByteBuffer byteBuffer, Object object)
  9. putObject(final ByteBuffer buffer, Serializable o)