public final class oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes extends java.lang.Object
{
private void <init>()
{
oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes v;
v := @this: oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public static int hashCode(byte)
{
byte v;
v := @parameter: byte;
return v;
}
public static boolean contains(byte[], byte)
{
byte[] v;
byte v, v;
int v, v;
v := @parameter: byte[];
v := @parameter: byte;
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
if v != v goto label;
return 1;
label:
v = v + 1;
goto label;
label:
return 0;
}
public static int indexOf(byte[], byte)
{
byte[] v;
byte v;
int v, v;
v := @parameter: byte[];
v := @parameter: byte;
v = lengthof v;
v = staticinvoke <oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes: int indexOf(byte[],byte,int,int)>(v, v, 0, v);
return v;
}
private static int indexOf(byte[], byte, int, int)
{
byte[] v;
byte v, v;
int v, v, v, v;
v := @parameter: byte[];
v := @parameter: byte;
v := @parameter: int;
v := @parameter: int;
v = v;
label:
if v >= v goto label;
v = v[v];
if v != v goto label;
return v;
label:
v = v + 1;
goto label;
label:
v = (int) -1;
return v;
}
public static int indexOf(byte[], byte[])
{
byte[] v, v;
byte v, v;
int v, v, v, v, v, v, v, v, v, v;
v := @parameter: byte[];
v := @parameter: byte[];
staticinvoke <oadd.org.apache.curator.shaded.com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object,java.lang.Object)>(v, "array");
staticinvoke <oadd.org.apache.curator.shaded.com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object,java.lang.Object)>(v, "target");
v = lengthof v;
if v != 0 goto label;
return 0;
label:
v = 0;
label:
v = lengthof v;
v = lengthof v;
v = v - v;
v = v + 1;
if v >= v goto label;
v = 0;
label:
v = lengthof v;
if v >= v goto label;
v = v + v;
v = v[v];
v = v[v];
if v != v goto label;
v = v + 1;
goto label;
label:
return v;
label:
v = v + 1;
goto label;
label:
v = (int) -1;
return v;
}
public static int lastIndexOf(byte[], byte)
{
byte[] v;
byte v;
int v, v;
v := @parameter: byte[];
v := @parameter: byte;
v = lengthof v;
v = staticinvoke <oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes: int lastIndexOf(byte[],byte,int,int)>(v, v, 0, v);
return v;
}
private static int lastIndexOf(byte[], byte, int, int)
{
byte[] v;
byte v, v;
int v, v, v, v;
v := @parameter: byte[];
v := @parameter: byte;
v := @parameter: int;
v := @parameter: int;
v = v - 1;
label:
if v < v goto label;
v = v[v];
if v != v goto label;
return v;
label:
v = v - 1;
goto label;
label:
v = (int) -1;
return v;
}
public static transient byte[] concat(byte[][])
{
byte[] v, v, v;
byte[][] v;
int v, v, v, v, v, v, v, v, v;
v := @parameter: byte[][];
v = 0;
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = lengthof v;
v = v + v;
v = v + 1;
goto label;
label:
v = newarray (byte)[v];
v = 0;
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = lengthof v;
staticinvoke <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>(v, 0, v, v, v);
v = lengthof v;
v = v + v;
v = v + 1;
goto label;
label:
return v;
}
public static byte[] ensureCapacity(byte[], int, int)
{
byte[] v, v;
int v, v, v, v;
boolean v, v;
v := @parameter: byte[];
v := @parameter: int;
v := @parameter: int;
if v < 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <oadd.org.apache.curator.shaded.com.google.common.base.Preconditions: void checkArgument(boolean,java.lang.String,int)>(v, "Invalid minLength: %s", v);
if v < 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <oadd.org.apache.curator.shaded.com.google.common.base.Preconditions: void checkArgument(boolean,java.lang.String,int)>(v, "Invalid padding: %s", v);
v = lengthof v;
if v >= v goto label;
v = v + v;
v = staticinvoke <java.util.Arrays: byte[] copyOf(byte[],int)>(v, v);
goto label;
label:
v = v;
label:
return v;
}
public static byte[] toArray(java.util.Collection)
{
byte[] v, v;
java.lang.Object[] v;
java.util.Collection v;
byte v;
int v, v;
java.lang.Object v, v;
boolean v;
v := @parameter: java.util.Collection;
v = v instanceof oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes$ByteArrayAsList;
if v == 0 goto label;
v = virtualinvoke v.<oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes$ByteArrayAsList: byte[] toByteArray()>();
return v;
label:
v = interfaceinvoke v.<java.util.Collection: java.lang.Object[] toArray()>();
v = lengthof v;
v = newarray (byte)[v];
v = 0;
label:
if v >= v goto label;
v = v[v];
v = staticinvoke <oadd.org.apache.curator.shaded.com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
v = virtualinvoke v.<java.lang.Number: byte byteValue()>();
v[v] = v;
v = v + 1;
goto label;
label:
return v;
}
public static transient java.util.List asList(byte[])
{
byte[] v;
java.util.List v;
int v;
oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes$ByteArrayAsList v;
v := @parameter: byte[];
v = lengthof v;
if v != 0 goto label;
v = staticinvoke <java.util.Collections: java.util.List emptyList()>();
return v;
label:
v = new oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes$ByteArrayAsList;
specialinvoke v.<oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes$ByteArrayAsList: void <init>(byte[])>(v);
return v;
}
public static void reverse(byte[])
{
int v;
byte[] v;
v := @parameter: byte[];
staticinvoke <oadd.org.apache.curator.shaded.com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
v = lengthof v;
staticinvoke <oadd.org.apache.curator.shaded.com.google.common.primitives.Bytes: void reverse(byte[],int,int)>(v, 0, v);
return;
}
public static void reverse(byte[], int, int)
{
byte[] v;
byte v, v;
int v, v, v, v, v;
v := @parameter: byte[];
v := @parameter: int;
v := @parameter: int;
staticinvoke <oadd.org.apache.curator.shaded.com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
v = lengthof v;
staticinvoke <oadd.org.apache.curator.shaded.com.google.common.base.Preconditions: void checkPositionIndexes(int,int,int)>(v, v, v);
v = v;
v = v - 1;
label:
if v >= v goto label;
v = v[v];
v = v[v];
v[v] = v;
v[v] = v;
v = v + 1;
v = v - 1;
goto label;
label:
return;
}
}