abstract class com.google.common.hash.AbstractNonStreamingHashFunction extends com.google.common.hash.AbstractHashFunction
{
void <init>()
{
com.google.common.hash.AbstractNonStreamingHashFunction v;
v := @this: com.google.common.hash.AbstractNonStreamingHashFunction;
specialinvoke v.<com.google.common.hash.AbstractHashFunction: void <init>()>();
return;
}
public com.google.common.hash.Hasher newHasher()
{
com.google.common.hash.AbstractNonStreamingHashFunction v;
com.google.common.hash.Hasher v;
v := @this: com.google.common.hash.AbstractNonStreamingHashFunction;
v = virtualinvoke v.<com.google.common.hash.AbstractNonStreamingHashFunction: com.google.common.hash.Hasher newHasher(int)>(32);
return v;
}
public com.google.common.hash.Hasher newHasher(int)
{
com.google.common.hash.AbstractNonStreamingHashFunction v;
int v;
boolean v;
com.google.common.hash.AbstractNonStreamingHashFunction$BufferingHasher v;
v := @this: com.google.common.hash.AbstractNonStreamingHashFunction;
v := @parameter: int;
if v < 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <com.google.common.base.Preconditions: void checkArgument(boolean)>(v);
v = new com.google.common.hash.AbstractNonStreamingHashFunction$BufferingHasher;
specialinvoke v.<com.google.common.hash.AbstractNonStreamingHashFunction$BufferingHasher: void <init>(com.google.common.hash.AbstractNonStreamingHashFunction,int)>(v, v);
return v;
}
public com.google.common.hash.HashCode hashInt(int)
{
byte[] v;
com.google.common.hash.HashCode v;
java.nio.ByteBuffer v, v, v;
java.nio.ByteOrder v;
com.google.common.hash.AbstractNonStreamingHashFunction v;
int v;
v := @this: com.google.common.hash.AbstractNonStreamingHashFunction;
v := @parameter: int;
v = staticinvoke <java.nio.ByteBuffer: java.nio.ByteBuffer allocate(int)>(4);
v = <java.nio.ByteOrder: java.nio.ByteOrder LITTLE_ENDIAN>;
v = virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer order(java.nio.ByteOrder)>(v);
v = virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer putInt(int)>(v);
v = virtualinvoke v.<java.nio.ByteBuffer: byte[] array()>();
v = virtualinvoke v.<com.google.common.hash.AbstractNonStreamingHashFunction: com.google.common.hash.HashCode hashBytes(byte[])>(v);
return v;
}
public com.google.common.hash.HashCode hashLong(long)
{
byte[] v;
com.google.common.hash.HashCode v;
long v;
java.nio.ByteBuffer v, v, v;
java.nio.ByteOrder v;
com.google.common.hash.AbstractNonStreamingHashFunction v;
v := @this: com.google.common.hash.AbstractNonStreamingHashFunction;
v := @parameter: long;
v = staticinvoke <java.nio.ByteBuffer: java.nio.ByteBuffer allocate(int)>(8);
v = <java.nio.ByteOrder: java.nio.ByteOrder LITTLE_ENDIAN>;
v = virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer order(java.nio.ByteOrder)>(v);
v = virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer putLong(long)>(v);
v = virtualinvoke v.<java.nio.ByteBuffer: byte[] array()>();
v = virtualinvoke v.<com.google.common.hash.AbstractNonStreamingHashFunction: com.google.common.hash.HashCode hashBytes(byte[])>(v);
return v;
}
public com.google.common.hash.HashCode hashUnencodedChars(java.lang.CharSequence)
{
byte[] v;
java.lang.CharSequence v;
com.google.common.hash.HashCode v;
char v;
java.nio.ByteBuffer v, v;
java.nio.ByteOrder v;
com.google.common.hash.AbstractNonStreamingHashFunction v;
int v, v, v;
v := @this: com.google.common.hash.AbstractNonStreamingHashFunction;
v := @parameter: java.lang.CharSequence;
v = interfaceinvoke v.<java.lang.CharSequence: int length()>();
v = v * 2;
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 = 0;
label:
if v >= v goto label;
v = interfaceinvoke v.<java.lang.CharSequence: char charAt(int)>(v);
virtualinvoke v.<java.nio.ByteBuffer: java.nio.ByteBuffer putChar(char)>(v);
v = v + 1;
goto label;
label:
v = virtualinvoke v.<java.nio.ByteBuffer: byte[] array()>();
v = virtualinvoke v.<com.google.common.hash.AbstractNonStreamingHashFunction: com.google.common.hash.HashCode hashBytes(byte[])>(v);
return v;
}
public com.google.common.hash.HashCode hashString(java.lang.CharSequence, java.nio.charset.Charset)
{
byte[] v;
com.google.common.hash.AbstractNonStreamingHashFunction v;
java.lang.CharSequence v;
java.nio.charset.Charset v;
com.google.common.hash.HashCode v;
java.lang.String v;
v := @this: com.google.common.hash.AbstractNonStreamingHashFunction;
v := @parameter: java.lang.CharSequence;
v := @parameter: java.nio.charset.Charset;
v = virtualinvoke v.<java.lang.Object: java.lang.String toString()>();
v = virtualinvoke v.<java.lang.String: byte[] getBytes(java.nio.charset.Charset)>(v);
v = virtualinvoke v.<com.google.common.hash.AbstractNonStreamingHashFunction: com.google.common.hash.HashCode hashBytes(byte[])>(v);
return v;
}
public abstract com.google.common.hash.HashCode hashBytes(byte[], int, int);
public com.google.common.hash.HashCode hashBytes(java.nio.ByteBuffer)
{
com.google.common.hash.AbstractNonStreamingHashFunction v;
com.google.common.hash.HashCode v;
int v;
com.google.common.hash.Hasher v, v;
java.nio.ByteBuffer v;
v := @this: com.google.common.hash.AbstractNonStreamingHashFunction;
v := @parameter: java.nio.ByteBuffer;
v = virtualinvoke v.<java.nio.ByteBuffer: int remaining()>();
v = virtualinvoke v.<com.google.common.hash.AbstractNonStreamingHashFunction: com.google.common.hash.Hasher newHasher(int)>(v);
v = interfaceinvoke v.<com.google.common.hash.Hasher: com.google.common.hash.Hasher putBytes(java.nio.ByteBuffer)>(v);
v = interfaceinvoke v.<com.google.common.hash.Hasher: com.google.common.hash.HashCode hash()>();
return v;
}
}