session-android/src/org/thoughtcrime/securesms/logging/GrowingBuffer.java

14 lines
260 B
Java
Raw Normal View History

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;
}
}