Android Utililty Methods ByteBuffer Merge

List of utility methods to do ByteBuffer Merge

Description

The list of methods to do ByteBuffer Merge are organized into topic(s).

Method

ListmergeAdjacentBuffers( List samples)
merge Adjacent Buffers
ArrayList<ByteBuffer> nuSamples = new ArrayList<ByteBuffer>(
        samples.size());
for (ByteBuffer buffer : samples) {
    int lastIndex = nuSamples.size() - 1;
    if (lastIndex >= 0
            && buffer.hasArray()
            && nuSamples.get(lastIndex).hasArray()
            && buffer.array() == nuSamples.get(lastIndex).array()
...