Java ByteBuffer Copy copy(ByteBuffer from, ByteBuffer to)

Here you can find the source of copy(ByteBuffer from, ByteBuffer to)

Description

copy

License

Open Source License

Declaration

static void copy(ByteBuffer from, ByteBuffer to) 

Method Source Code


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

import java.nio.ByteBuffer;

public class Main {
    static void copy(ByteBuffer from, ByteBuffer to) {
        to.put(from);//from  www  .  j  a  va 2 s  . c  o  m
        to.flip();
    }
}

Related

  1. copy(ByteBuffer bb, boolean forceDirect)
  2. copy(ByteBuffer buf)
  3. copy(ByteBuffer buffer)
  4. copy(ByteBuffer buffer)
  5. copy(ByteBuffer buffer)
  6. copy(ByteBuffer origin, int start, int end)
  7. copy(ByteBuffer source)
  8. copy(ByteBuffer source, int byteCount)
  9. copy(ByteBuffer src, ByteBuffer dst)