Java ByteBuffer Extract extractBytes(ByteBuffer buf)

Here you can find the source of extractBytes(ByteBuffer buf)

Description

extract Bytes

License

Open Source License

Declaration

public static byte[] extractBytes(ByteBuffer buf) 

Method Source Code

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

import java.nio.ByteBuffer;

public class Main {
    public static byte[] extractBytes(ByteBuffer buf) {
        byte[] ret = new byte[buf.limit()];
        buf.get(ret);//from  ww w.  j  a  va2  s.c  o  m
        return ret;
    }
}

Related

  1. extract(ByteBuffer buf)
  2. extractBytes(ByteBuffer buffer, int size)
  3. extractBytes(ByteBuffer byteBuffer, byte startByte, byte endByte)
  4. extractSingleHighCardDims(byte[] highCardArr, int index, int highCardinalityCount, ByteBuffer outBuffer)