- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
27 lines
930 B
Java
27 lines
930 B
Java
package androidx.datastore.preferences.protobuf;
|
|
|
|
import java.nio.ByteBuffer;
|
|
|
|
/* loaded from: classes.dex */
|
|
abstract class BufferAllocator {
|
|
private static final BufferAllocator UNPOOLED = new BufferAllocator() { // from class: androidx.datastore.preferences.protobuf.BufferAllocator.1
|
|
@Override // androidx.datastore.preferences.protobuf.BufferAllocator
|
|
public AllocatedBuffer allocateHeapBuffer(int i) {
|
|
return AllocatedBuffer.wrap(new byte[i]);
|
|
}
|
|
|
|
@Override // androidx.datastore.preferences.protobuf.BufferAllocator
|
|
public AllocatedBuffer allocateDirectBuffer(int i) {
|
|
return AllocatedBuffer.wrap(ByteBuffer.allocateDirect(i));
|
|
}
|
|
};
|
|
|
|
public static BufferAllocator unpooled() {
|
|
return UNPOOLED;
|
|
}
|
|
|
|
public abstract AllocatedBuffer allocateDirectBuffer(int i);
|
|
|
|
public abstract AllocatedBuffer allocateHeapBuffer(int i);
|
|
}
|