mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Add interim storage support for GroupV2Record.
This commit is contained in:
@@ -4,6 +4,7 @@ import com.annimon.stream.Stream;
|
||||
import com.google.common.collect.Sets;
|
||||
|
||||
import org.thoughtcrime.securesms.util.Conversions;
|
||||
import org.whispersystems.libsignal.util.ByteUtil;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.ArrayList;
|
||||
@@ -23,6 +24,12 @@ public final class TestHelpers {
|
||||
return Conversions.intToByteArray(a);
|
||||
}
|
||||
|
||||
public static byte[] byteArray(int a, int totalLength) {
|
||||
byte[] out = new byte[totalLength - 4];
|
||||
byte[] val = Conversions.intToByteArray(a);
|
||||
return ByteUtil.combine(out, val);
|
||||
}
|
||||
|
||||
public static List<byte[]> byteListOf(int... vals) {
|
||||
List<byte[]> list = new ArrayList<>(vals.length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user