abstract class com.google.common.hash.AbstractStreamingHasher extends com.google.common.hash.AbstractHasher
{
private final java.nio.ByteBuffer buffer;
private final int bufferSize;
private final int chunkSize;
protected void <init>(int)
{
com.google.common.hash.AbstractStreamingHasher v;
int v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: int;
specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: void <init>(int,int)>(v, v);
return;
}
protected void <init>(int, int)
{
com.google.common.hash.AbstractStreamingHasher v;
java.nio.ByteBuffer v, v;
java.nio.ByteOrder v;
int v, v, v, v;
boolean v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: int;
v := @parameter: int;
specialinvoke v.<com.google.common.hash.AbstractHasher: void <init>()>();
v = v % v;
if v != 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <com.google.common.base.Preconditions: void checkArgument(boolean)>(v);
v = v + 7;
v = staticinvoke <java.nio.ByteBuffer: java.nio.ByteBuffer allocate(int)>(v);
v = <java.nio.ByteOrder: java.nio.ByteOrder LITTLE_ENDIAN>;
v = virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer order(java.nio.ByteOrder)>(v);
v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer> = v;
v.<com.google.common.hash.AbstractStreamingHasher: int bufferSize> = v;
v.<com.google.common.hash.AbstractStreamingHasher: int chunkSize> = v;
return;
}
protected abstract void process(java.nio.ByteBuffer);
protected void processRemaining(java.nio.ByteBuffer)
{
com.google.common.hash.AbstractStreamingHasher v;
java.nio.ByteBuffer v;
int v, v, v, v, v, v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: java.nio.ByteBuffer;
v = virtualinvoke v.<java.nio.ByteBuffer: int limit()>();
staticinvoke <com.google.common.hash.Java8Compatibility: void position(java.nio.Buffer,int)>(v, v);
v = v.<com.google.common.hash.AbstractStreamingHasher: int chunkSize>;
v = v + 7;
staticinvoke <com.google.common.hash.Java8Compatibility: void limit(java.nio.Buffer,int)>(v, v);
label:
v = virtualinvoke v.<java.nio.ByteBuffer: int position()>();
v = v.<com.google.common.hash.AbstractStreamingHasher: int chunkSize>;
if v >= v goto label;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer putLong(long)>(0L);
goto label;
label:
v = v.<com.google.common.hash.AbstractStreamingHasher: int chunkSize>;
staticinvoke <com.google.common.hash.Java8Compatibility: void limit(java.nio.Buffer,int)>(v, v);
staticinvoke <com.google.common.hash.Java8Compatibility: void flip(java.nio.Buffer)>(v);
virtualinvoke v.<com.google.common.hash.AbstractStreamingHasher: void process(java.nio.ByteBuffer)>(v);
return;
}
public final com.google.common.hash.Hasher putBytes(byte[], int, int)
{
com.google.common.hash.AbstractStreamingHasher v;
byte[] v;
java.nio.ByteBuffer v, v;
java.nio.ByteOrder v;
int v, v;
com.google.common.hash.Hasher v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: byte[];
v := @parameter: int;
v := @parameter: int;
v = staticinvoke <java.nio.ByteBuffer: java.nio.ByteBuffer wrap(byte[],int,int)>(v, v, v);
v = <java.nio.ByteOrder: java.nio.ByteOrder LITTLE_ENDIAN>;
v = virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer order(java.nio.ByteOrder)>(v);
v = specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: com.google.common.hash.Hasher putBytesInternal(java.nio.ByteBuffer)>(v);
return v;
}
public final com.google.common.hash.Hasher putBytes(java.nio.ByteBuffer)
{
com.google.common.hash.AbstractStreamingHasher v;
java.lang.Throwable v;
java.nio.ByteOrder v, v;
com.google.common.hash.Hasher v;
java.nio.ByteBuffer v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: java.nio.ByteBuffer;
v = virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteOrder order()>();
label:
v = <java.nio.ByteOrder: java.nio.ByteOrder LITTLE_ENDIAN>;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer order(java.nio.ByteOrder)>(v);
v = specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: com.google.common.hash.Hasher putBytesInternal(java.nio.ByteBuffer)>(v);
label:
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer order(java.nio.ByteOrder)>(v);
return v;
label:
v := @caughtexception;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer order(java.nio.ByteOrder)>(v);
throw v;
catch java.lang.Throwable from label to label with label;
}
private com.google.common.hash.Hasher putBytesInternal(java.nio.ByteBuffer)
{
java.nio.ByteBuffer v, v, v, v, v, v;
byte v;
int v, v, v, v, v, v, v, v;
com.google.common.hash.AbstractStreamingHasher v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: java.nio.ByteBuffer;
v = virtualinvoke v.<java.nio.ByteBuffer: int remaining()>();
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
v = virtualinvoke v.<java.nio.ByteBuffer: int remaining()>();
if v > v goto label;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer put(java.nio.ByteBuffer)>(v);
specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: void munchIfFull()>();
return v;
label:
v = v.<com.google.common.hash.AbstractStreamingHasher: int bufferSize>;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
v = virtualinvoke v.<java.nio.ByteBuffer: int position()>();
v = v - v;
v = 0;
label:
if v >= v goto label;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
v = virtualinvoke v.<java.nio.ByteBuffer: byte get()>();
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer put(byte)>(v);
v = v + 1;
goto label;
label:
specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: void munch()>();
label:
v = virtualinvoke v.<java.nio.ByteBuffer: int remaining()>();
v = v.<com.google.common.hash.AbstractStreamingHasher: int chunkSize>;
if v < v goto label;
virtualinvoke v.<com.google.common.hash.AbstractStreamingHasher: void process(java.nio.ByteBuffer)>(v);
goto label;
label:
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer put(java.nio.ByteBuffer)>(v);
return v;
}
public final com.google.common.hash.Hasher putByte(byte)
{
com.google.common.hash.AbstractStreamingHasher v;
byte v;
java.nio.ByteBuffer v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: byte;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer put(byte)>(v);
specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: void munchIfFull()>();
return v;
}
public final com.google.common.hash.Hasher putShort(short)
{
com.google.common.hash.AbstractStreamingHasher v;
short v;
java.nio.ByteBuffer v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: short;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer putShort(short)>(v);
specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: void munchIfFull()>();
return v;
}
public final com.google.common.hash.Hasher putChar(char)
{
com.google.common.hash.AbstractStreamingHasher v;
char v;
java.nio.ByteBuffer v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: char;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer putChar(char)>(v);
specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: void munchIfFull()>();
return v;
}
public final com.google.common.hash.Hasher putInt(int)
{
com.google.common.hash.AbstractStreamingHasher v;
int v;
java.nio.ByteBuffer v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: int;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer putInt(int)>(v);
specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: void munchIfFull()>();
return v;
}
public final com.google.common.hash.Hasher putLong(long)
{
com.google.common.hash.AbstractStreamingHasher v;
long v;
java.nio.ByteBuffer v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v := @parameter: long;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer putLong(long)>(v);
specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: void munchIfFull()>();
return v;
}
public final com.google.common.hash.HashCode hash()
{
com.google.common.hash.AbstractStreamingHasher v;
com.google.common.hash.HashCode v;
java.nio.ByteBuffer v, v, v, v, v;
int v, v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: void munch()>();
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
staticinvoke <com.google.common.hash.Java8Compatibility: void flip(java.nio.Buffer)>(v);
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
v = virtualinvoke v.<java.nio.ByteBuffer: int remaining()>();
if v <= 0 goto label;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
virtualinvoke v.<com.google.common.hash.AbstractStreamingHasher: void processRemaining(java.nio.ByteBuffer)>(v);
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
v = virtualinvoke v.<java.nio.ByteBuffer: int limit()>();
staticinvoke <com.google.common.hash.Java8Compatibility: void position(java.nio.Buffer,int)>(v, v);
label:
v = virtualinvoke v.<com.google.common.hash.AbstractStreamingHasher: com.google.common.hash.HashCode makeHash()>();
return v;
}
protected abstract com.google.common.hash.HashCode makeHash();
private void munchIfFull()
{
com.google.common.hash.AbstractStreamingHasher v;
int v;
java.nio.ByteBuffer v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
v = virtualinvoke v.<java.nio.ByteBuffer: int remaining()>();
if v >= 8 goto label;
specialinvoke v.<com.google.common.hash.AbstractStreamingHasher: void munch()>();
label:
return;
}
private void munch()
{
com.google.common.hash.AbstractStreamingHasher v;
int v, v;
java.nio.ByteBuffer v, v, v, v;
v := @this: com.google.common.hash.AbstractStreamingHasher;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
staticinvoke <com.google.common.hash.Java8Compatibility: void flip(java.nio.Buffer)>(v);
label:
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
v = virtualinvoke v.<java.nio.ByteBuffer: int remaining()>();
v = v.<com.google.common.hash.AbstractStreamingHasher: int chunkSize>;
if v < v goto label;
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
virtualinvoke v.<com.google.common.hash.AbstractStreamingHasher: void process(java.nio.ByteBuffer)>(v);
goto label;
label:
v = v.<com.google.common.hash.AbstractStreamingHasher: java.nio.ByteBuffer buffer>;
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer compact()>();
return;
}
}