You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
361 lines
12 KiB
361 lines
12 KiB
.class final Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher; |
|
.super Lcom/google/common/hash/AbstractHasher; |
|
.source "AbstractNonStreamingHashFunction.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/google/common/hash/AbstractNonStreamingHashFunction; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x12 |
|
name = "BufferingHasher" |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field static final BOTTOM_BYTE:I = 0xff |
|
|
|
|
|
# instance fields |
|
.field final stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
.field final synthetic this$0:Lcom/google/common/hash/AbstractNonStreamingHashFunction; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/google/common/hash/AbstractNonStreamingHashFunction;I)V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 85 |
|
iput-object p1, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->this$0:Lcom/google/common/hash/AbstractNonStreamingHashFunction; |
|
|
|
invoke-direct {p0}, Lcom/google/common/hash/AbstractHasher;-><init>()V |
|
|
|
.line 86 |
|
new-instance v0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
invoke-direct {v0, p2}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;-><init>(I)V |
|
|
|
iput-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
.line 87 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public hash()Lcom/google/common/hash/HashCode; |
|
.locals 4 |
|
|
|
.prologue |
|
.line 150 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->this$0:Lcom/google/common/hash/AbstractNonStreamingHashFunction; |
|
|
|
iget-object v1, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
invoke-virtual {v1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->byteArray()[B |
|
|
|
move-result-object v1 |
|
|
|
const/4 v2, 0x0 |
|
|
|
iget-object v3, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
invoke-virtual {v3}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->length()I |
|
|
|
move-result v3 |
|
|
|
invoke-virtual {v0, v1, v2, v3}, Lcom/google/common/hash/AbstractNonStreamingHashFunction;->hashBytes([BII)Lcom/google/common/hash/HashCode; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public putByte(B)Lcom/google/common/hash/Hasher; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 91 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
invoke-virtual {v0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(I)V |
|
|
|
.line 92 |
|
return-object p0 |
|
.end method |
|
|
|
.method public bridge synthetic putByte(B)Lcom/google/common/hash/PrimitiveSink; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 81 |
|
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->putByte(B)Lcom/google/common/hash/Hasher; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public putBytes([B)Lcom/google/common/hash/Hasher; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 98 |
|
:try_start_0 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
invoke-virtual {v0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write([B)V |
|
:try_end_0 |
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 102 |
|
return-object p0 |
|
|
|
.line 99 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 100 |
|
new-instance v1, Ljava/lang/RuntimeException; |
|
|
|
invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V |
|
|
|
throw v1 |
|
.end method |
|
|
|
.method public putBytes([BII)Lcom/google/common/hash/Hasher; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 107 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
invoke-virtual {v0, p1, p2, p3}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write([BII)V |
|
|
|
.line 108 |
|
return-object p0 |
|
.end method |
|
|
|
.method public bridge synthetic putBytes([B)Lcom/google/common/hash/PrimitiveSink; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 81 |
|
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->putBytes([B)Lcom/google/common/hash/Hasher; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public bridge synthetic putBytes([BII)Lcom/google/common/hash/PrimitiveSink; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 81 |
|
invoke-virtual {p0, p1, p2, p3}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->putBytes([BII)Lcom/google/common/hash/Hasher; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public putChar(C)Lcom/google/common/hash/Hasher; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 137 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
and-int/lit16 v1, p1, 0xff |
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(I)V |
|
|
|
.line 138 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
ushr-int/lit8 v1, p1, 0x8 |
|
|
|
and-int/lit16 v1, v1, 0xff |
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(I)V |
|
|
|
.line 139 |
|
return-object p0 |
|
.end method |
|
|
|
.method public bridge synthetic putChar(C)Lcom/google/common/hash/PrimitiveSink; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 81 |
|
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->putChar(C)Lcom/google/common/hash/Hasher; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public putInt(I)Lcom/google/common/hash/Hasher; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 120 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
and-int/lit16 v1, p1, 0xff |
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(I)V |
|
|
|
.line 121 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
ushr-int/lit8 v1, p1, 0x8 |
|
|
|
and-int/lit16 v1, v1, 0xff |
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(I)V |
|
|
|
.line 122 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
ushr-int/lit8 v1, p1, 0x10 |
|
|
|
and-int/lit16 v1, v1, 0xff |
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(I)V |
|
|
|
.line 123 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
ushr-int/lit8 v1, p1, 0x18 |
|
|
|
and-int/lit16 v1, v1, 0xff |
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(I)V |
|
|
|
.line 124 |
|
return-object p0 |
|
.end method |
|
|
|
.method public bridge synthetic putInt(I)Lcom/google/common/hash/PrimitiveSink; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 81 |
|
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->putInt(I)Lcom/google/common/hash/Hasher; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public putLong(J)Lcom/google/common/hash/Hasher; |
|
.locals 7 |
|
|
|
.prologue |
|
.line 129 |
|
const/4 v0, 0x0 |
|
|
|
:goto_0 |
|
const/16 v1, 0x40 |
|
|
|
if-ge v0, v1, :cond_0 |
|
|
|
.line 130 |
|
iget-object v1, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
ushr-long v2, p1, v0 |
|
|
|
const-wide/16 v4, 0xff |
|
|
|
and-long/2addr v2, v4 |
|
|
|
long-to-int v2, v2 |
|
|
|
int-to-byte v2, v2 |
|
|
|
invoke-virtual {v1, v2}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(I)V |
|
|
|
.line 129 |
|
add-int/lit8 v0, v0, 0x8 |
|
|
|
goto :goto_0 |
|
|
|
.line 132 |
|
:cond_0 |
|
return-object p0 |
|
.end method |
|
|
|
.method public bridge synthetic putLong(J)Lcom/google/common/hash/PrimitiveSink; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 81 |
|
invoke-virtual {p0, p1, p2}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->putLong(J)Lcom/google/common/hash/Hasher; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public putObject(Ljava/lang/Object;Lcom/google/common/hash/Funnel;)Lcom/google/common/hash/Hasher; |
|
.locals 0 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(TT;", |
|
"Lcom/google/common/hash/Funnel", |
|
"<-TT;>;)", |
|
"Lcom/google/common/hash/Hasher;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 144 |
|
invoke-interface {p2, p1, p0}, Lcom/google/common/hash/Funnel;->funnel(Ljava/lang/Object;Lcom/google/common/hash/PrimitiveSink;)V |
|
|
|
.line 145 |
|
return-object p0 |
|
.end method |
|
|
|
.method public putShort(S)Lcom/google/common/hash/Hasher; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 113 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
and-int/lit16 v1, p1, 0xff |
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(I)V |
|
|
|
.line 114 |
|
iget-object v0, p0, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->stream:Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream; |
|
|
|
ushr-int/lit8 v1, p1, 0x8 |
|
|
|
and-int/lit16 v1, v1, 0xff |
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$ExposedByteArrayOutputStream;->write(I)V |
|
|
|
.line 115 |
|
return-object p0 |
|
.end method |
|
|
|
.method public bridge synthetic putShort(S)Lcom/google/common/hash/PrimitiveSink; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 81 |
|
invoke-virtual {p0, p1}, Lcom/google/common/hash/AbstractNonStreamingHashFunction$BufferingHasher;->putShort(S)Lcom/google/common/hash/Hasher; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method
|
|
|