mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-29 04:55:15 +00:00
14 lines
260 B
Java
14 lines
260 B
Java
|
package org.thoughtcrime.securesms.logging;
|
||
|
|
||
|
public class GrowingBuffer {
|
||
|
|
||
|
private byte[] buffer;
|
||
|
|
||
|
public byte[] get(int minLength) {
|
||
|
if (buffer == null || buffer.length < minLength) {
|
||
|
buffer = new byte[minLength];
|
||
|
}
|
||
|
return buffer;
|
||
|
}
|
||
|
}
|