Rabbit-R1/android (non root)/smali/smali_classes3/com/google/common/hash/LittleEndianByteArray$UnsafeByteArray.smali
2024-05-21 17:08:36 -04:00

244 lines
7.3 KiB
Smali

.class abstract enum Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.super Ljava/lang/Enum;
.source "LittleEndianByteArray.java"
# interfaces
.implements Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/hash/LittleEndianByteArray;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x440a
name = "UnsafeByteArray"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;",
">;",
"Lcom/google/common/hash/LittleEndianByteArray$LittleEndianBytes;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.field private static final BYTE_ARRAY_BASE_OFFSET:I
.field public static final enum UNSAFE_BIG_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.field public static final enum UNSAFE_LITTLE_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.field private static final theUnsafe:Lsun/misc/Unsafe;
# direct methods
.method private static synthetic $values()[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.locals 3
const/4 v0, 0x2
new-array v0, v0, [Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
const/4 v1, 0x0
sget-object v2, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_LITTLE_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
aput-object v2, v0, v1
const/4 v1, 0x1
sget-object v2, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_BIG_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
aput-object v2, v0, v1
return-object v0
.end method
.method static constructor <clinit>()V
.locals 4
.line 129
new-instance v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$1;
const-string v1, "UNSAFE_LITTLE_ENDIAN"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$1;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_LITTLE_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 140
new-instance v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$2;
const-string v1, "UNSAFE_BIG_ENDIAN"
const/4 v2, 0x1
invoke-direct {v0, v1, v2}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$2;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_BIG_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 127
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->$values()[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
move-result-object v0
sput-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->$VALUES:[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 196
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->getUnsafe()Lsun/misc/Unsafe;
move-result-object v0
sput-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->theUnsafe:Lsun/misc/Unsafe;
const-class v1, [B
.line 197
invoke-virtual {v0, v1}, Lsun/misc/Unsafe;->arrayBaseOffset(Ljava/lang/Class;)I
move-result v3
sput v3, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->BYTE_ARRAY_BASE_OFFSET:I
.line 200
invoke-virtual {v0, v1}, Lsun/misc/Unsafe;->arrayIndexScale(Ljava/lang/Class;)I
move-result v0
if-ne v0, v2, :cond_0
return-void
.line 201
:cond_0
new-instance v0, Ljava/lang/AssertionError;
invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V
throw v0
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
.line 127
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method synthetic constructor <init>(Ljava/lang/String;ILcom/google/common/hash/LittleEndianByteArray$1;)V
.locals 0
.line 127
invoke-direct {p0, p1, p2}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method static synthetic access$100()I
.locals 1
sget v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->BYTE_ARRAY_BASE_OFFSET:I
return v0
.end method
.method static synthetic access$200()Lsun/misc/Unsafe;
.locals 1
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->theUnsafe:Lsun/misc/Unsafe;
return-object v0
.end method
.method private static getUnsafe()Lsun/misc/Unsafe;
.locals 3
.line 170
:try_start_0
invoke-static {}, Lsun/misc/Unsafe;->getUnsafe()Lsun/misc/Unsafe;
move-result-object v0
:try_end_0
.catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0
return-object v0
.line 175
:catch_0
:try_start_1
new-instance v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$3;
invoke-direct {v0}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$3;-><init>()V
invoke-static {v0}, Ljava/security/AccessController;->doPrivileged(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lsun/misc/Unsafe;
:try_end_1
.catch Ljava/security/PrivilegedActionException; {:try_start_1 .. :try_end_1} :catch_1
return-object v0
:catch_1
move-exception v0
.line 191
new-instance v1, Ljava/lang/RuntimeException;
const-string v2, "Could not initialize intrinsics"
invoke-virtual {v0}, Ljava/security/PrivilegedActionException;->getCause()Ljava/lang/Throwable;
move-result-object v0
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v1
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.locals 1
const-class v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 127
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
return-object p0
.end method
.method public static values()[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.locals 1
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->$VALUES:[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 127
invoke-virtual {v0}, [Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
return-object v0
.end method