Java ByteBuffer Clear clear(ByteBuffer[] buffers)

Here you can find the source of clear(ByteBuffer[] buffers)

Description

clear

License

Open Source License

Declaration

public static final void clear(ByteBuffer[] buffers) 

Method Source Code


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

import java.nio.ByteBuffer;

public class Main {
    public static final void clear(ByteBuffer[] buffers) {
        if (buffers == null) {
            return;
        }/*from  ww w.j  av  a 2  s. c  om*/
        for (ByteBuffer buffer : buffers) {
            if (buffer != null) {
                buffer.clear();
            }
        }
    }
}

Related

  1. clear(ByteBuffer b)
  2. clear(ByteBuffer buffer)
  3. clear(ByteBuffer buffer, int position, int length, byte filler)
  4. clearAll(ByteBuffer[] buffers)
  5. clearAndEnsureCapacity(ByteBuffer buffer, int elements)
  6. clearRemaining(ByteBuffer buffer)
  7. clearRemainingFrame(ByteBuffer buffer, int position)