Java ByteBuffer Write writeBuffer(ByteBuffer dest, ByteBuffer src)

Here you can find the source of writeBuffer(ByteBuffer dest, ByteBuffer src)

Description

write Buffer

License

Open Source License

Declaration

public static void writeBuffer(ByteBuffer dest, ByteBuffer src) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.nio.ByteBuffer;

public class Main {
    public static void writeBuffer(ByteBuffer dest, ByteBuffer src) {
        int position = src.position();
        dest.put(src);/*from w w  w.  j a  v  a2 s  .c  o  m*/
        src.position(position);
    }
}

Related

  1. writeBE(ByteBuffer bb, int elementWidth, long value)
  2. writeBER32(ByteBuffer buffer, int value)
  3. writeBigInteger(ByteBuffer bb, BigInteger bigInteger, int length)
  4. writeBlock(String fileName, long startOffset, ByteBuffer buffer, Logger log)
  5. writeBooleanArray(boolean[] array, ByteBuffer out)
  6. writeBuffer(ByteChannel channel, ByteBuffer buffer)
  7. writeBuffer(FileChannel fc, ByteBuffer buf, int startPos)
  8. writeBuffer(WritableByteChannel chan, ByteBuffer buf)
  9. writeByte(ByteBuffer dest, int off, int i)