mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove method I didn't end up needing
This commit is contained in:
parent
193ece6d18
commit
35c9788695
1 changed files with 0 additions and 18 deletions
|
|
@ -565,22 +565,4 @@ public final class ParsableByteArray {
|
||||||
position += length;
|
position += length;
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The data from the end of the buffer is copied to the front
|
|
||||||
* The limit() because the bytesLeft() and position is zero
|
|
||||||
*/
|
|
||||||
public void compact() {
|
|
||||||
if (bytesLeft() == 0) {
|
|
||||||
limit = 0;
|
|
||||||
} else {
|
|
||||||
final ByteBuffer byteBuffer = ByteBuffer.wrap(data);
|
|
||||||
byteBuffer.limit(limit);
|
|
||||||
byteBuffer.position(position);
|
|
||||||
byteBuffer.compact();
|
|
||||||
byteBuffer.flip();
|
|
||||||
limit = byteBuffer.limit();
|
|
||||||
}
|
|
||||||
position = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue