Java ByteBuffer Compact compact(ByteBuffer buffer)

Here you can find the source of compact(ByteBuffer buffer)

Description

compact

License

Apache License

Declaration

public static ByteBuffer compact(ByteBuffer buffer) 

Method Source Code

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

import java.nio.ByteBuffer;

public class Main {
    public static ByteBuffer compact(ByteBuffer buffer) {
        return buffer.compact();
    }/* w ww. jav a 2  s  . c o  m*/
}

Related

  1. compact(ByteBuffer buffer)
  2. compact(ByteBuffer buffer)
  3. compact(ByteBuffer[] buffers)
  4. toCompactArray(ByteBuffer src)