tmap/smali_classes3/com/google/common/hash/LittleEndianByteArray$UnsafeByteArray.smali
2022-06-10 21:38:30 +09:00

248 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 = 0x4409
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;
.line 1
sget-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_LITTLE_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
const/4 v2, 0x0
aput-object v1, v0, v2
sget-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_BIG_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
const/4 v2, 0x1
aput-object v1, v0, v2
return-object v0
.end method
.method public static constructor <clinit>()V
.locals 4
.line 1
const-class v0, [B
new-instance v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$1;
const-string v2, "UNSAFE_LITTLE_ENDIAN"
const/4 v3, 0x0
invoke-direct {v1, v2, v3}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$1;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_LITTLE_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 2
new-instance v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$2;
const-string v2, "UNSAFE_BIG_ENDIAN"
const/4 v3, 0x1
invoke-direct {v1, v2, v3}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray$2;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->UNSAFE_BIG_ENDIAN:Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 3
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->$values()[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
move-result-object v1
sput-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->$VALUES:[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
.line 4
invoke-static {}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->getUnsafe()Lsun/misc/Unsafe;
move-result-object v1
sput-object v1, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->theUnsafe:Lsun/misc/Unsafe;
.line 5
invoke-virtual {v1, v0}, Lsun/misc/Unsafe;->arrayBaseOffset(Ljava/lang/Class;)I
move-result v2
sput v2, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->BYTE_ARRAY_BASE_OFFSET:I
.line 6
invoke-virtual {v1, v0}, Lsun/misc/Unsafe;->arrayIndexScale(Ljava/lang/Class;)I
move-result v0
if-ne v0, v3, :cond_0
return-void
.line 7
: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 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public synthetic constructor <init>(Ljava/lang/String;ILcom/google/common/hash/LittleEndianByteArray$1;)V
.locals 0
.line 2
invoke-direct {p0, p1, p2}, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static synthetic access$100()I
.locals 1
.line 1
sget v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->BYTE_ARRAY_BASE_OFFSET:I
return v0
.end method
.method public static synthetic access$200()Lsun/misc/Unsafe;
.locals 1
.line 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 1
: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 2
: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 3
new-instance v1, Ljava/lang/RuntimeException;
invoke-virtual {v0}, Ljava/security/PrivilegedActionException;->getCause()Ljava/lang/Throwable;
move-result-object v0
const-string v2, "Could not initialize intrinsics"
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
.line 1
const-class v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
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
.line 1
sget-object v0, Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;->$VALUES:[Lcom/google/common/hash/LittleEndianByteArray$UnsafeByteArray;
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