Android ByteBuffer Create renewBuffer(ByteBuffer buf)

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

Description

renew Buffer

License

Open Source License

Declaration

protected static ByteBuffer renewBuffer(ByteBuffer buf) 

Method Source Code

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

import java.nio.ByteBuffer;

public class Main {
    protected static ByteBuffer renewBuffer(ByteBuffer buf) {
        buf.position(0);//from w  w w .  j  av a2 s  .  co  m
        buf.limit(buf.capacity());

        return buf;
    }
}

Related

  1. makeByteBuffer(byte[] arr)
  2. makeByteBuffer(int size)
  3. newByteBuffer(int numBytes)
  4. newByteBuffer(int paramInt)
  5. setupByteBuffer(ByteBuffer preBuffer, byte[] array)
  6. allocateAudioBuffer(int size)
  7. makeByteBuffer(byte[] array)
  8. ConvToByteBuffer(byte buf[])
  9. ConvToByteBuffer(byte buf[])