public final class org.apache.activemq.protobuf.AsciiBuffer extends org.apache.activemq.protobuf.Buffer
{
private int hashCode;
public void <init>(org.apache.activemq.protobuf.Buffer)
{
org.apache.activemq.protobuf.AsciiBuffer v;
org.apache.activemq.protobuf.Buffer v;
v := @this: org.apache.activemq.protobuf.AsciiBuffer;
v := @parameter: org.apache.activemq.protobuf.Buffer;
specialinvoke v.<org.apache.activemq.protobuf.Buffer: void <init>(org.apache.activemq.protobuf.Buffer)>(v);
return;
}
public void <init>(byte[], int, int)
{
byte[] v;
int v, v;
org.apache.activemq.protobuf.AsciiBuffer v;
v := @this: org.apache.activemq.protobuf.AsciiBuffer;
v := @parameter: byte[];
v := @parameter: int;
v := @parameter: int;
specialinvoke v.<org.apache.activemq.protobuf.Buffer: void <init>(byte[],int,int)>(v, v, v);
return;
}
public void <init>(byte[])
{
org.apache.activemq.protobuf.AsciiBuffer v;
byte[] v;
v := @this: org.apache.activemq.protobuf.AsciiBuffer;
v := @parameter: byte[];
specialinvoke v.<org.apache.activemq.protobuf.Buffer: void <init>(byte[])>(v);
return;
}
public void <init>(java.lang.String)
{
org.apache.activemq.protobuf.AsciiBuffer v;
byte[] v;
java.lang.String v;
v := @this: org.apache.activemq.protobuf.AsciiBuffer;
v := @parameter: java.lang.String;
v = staticinvoke <org.apache.activemq.protobuf.AsciiBuffer: byte[] encode(java.lang.String)>(v);
specialinvoke v.<org.apache.activemq.protobuf.Buffer: void <init>(byte[])>(v);
return;
}
public org.apache.activemq.protobuf.AsciiBuffer compact()
{
byte[] v, v;
int v, v;
org.apache.activemq.protobuf.AsciiBuffer v, v;
v := @this: org.apache.activemq.protobuf.AsciiBuffer;
v = v.<org.apache.activemq.protobuf.AsciiBuffer: int length>;
v = v.<org.apache.activemq.protobuf.AsciiBuffer: byte[] data>;
v = lengthof v;
if v == v goto label;
v = new org.apache.activemq.protobuf.AsciiBuffer;
v = virtualinvoke v.<org.apache.activemq.protobuf.AsciiBuffer: byte[] toByteArray()>();
specialinvoke v.<org.apache.activemq.protobuf.AsciiBuffer: void <init>(byte[])>(v);
return v;
label:
return v;
}
public java.lang.String toString()
{
org.apache.activemq.protobuf.AsciiBuffer v;
java.lang.String v;
v := @this: org.apache.activemq.protobuf.AsciiBuffer;
v = staticinvoke <org.apache.activemq.protobuf.AsciiBuffer: java.lang.String decode(org.apache.activemq.protobuf.Buffer)>(v);
return v;
}
public boolean equals(java.lang.Object)
{
org.apache.activemq.protobuf.AsciiBuffer v;
java.lang.Class v;
java.lang.Object v;
boolean v;
v := @this: org.apache.activemq.protobuf.AsciiBuffer;
v := @parameter: java.lang.Object;
if v != v goto label;
return 1;
label:
if v == null goto label;
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
if v == class "Lorg/apache/activemq/protobuf/AsciiBuffer;" goto label;
label:
return 0;
label:
v = virtualinvoke v.<org.apache.activemq.protobuf.AsciiBuffer: boolean equals(org.apache.activemq.protobuf.Buffer)>(v);
return v;
}
public int hashCode()
{
int v, v, v;
org.apache.activemq.protobuf.AsciiBuffer v;
v := @this: org.apache.activemq.protobuf.AsciiBuffer;
v = v.<org.apache.activemq.protobuf.AsciiBuffer: int hashCode>;
if v != 0 goto label;
v = specialinvoke v.<org.apache.activemq.protobuf.Buffer: int hashCode()>();
v.<org.apache.activemq.protobuf.AsciiBuffer: int hashCode> = v;
label:
v = v.<org.apache.activemq.protobuf.AsciiBuffer: int hashCode>;
return v;
}
public static byte[] encode(java.lang.String)
{
byte[] v;
int v, v;
char v, v;
java.lang.String v;
v := @parameter: java.lang.String;
v = virtualinvoke v.<java.lang.String: int length()>();
v = newarray (byte)[v];
v = 0;
label:
if v >= v goto label;
v = virtualinvoke v.<java.lang.String: char charAt(int)>(v);
v = v & 255;
v[v] = v;
v = v + 1;
goto label;
label:
return v;
}
public static java.lang.String decode(org.apache.activemq.protobuf.Buffer)
{
short v;
byte v;
int v, v;
org.apache.activemq.protobuf.Buffer v;
char[] v;
java.lang.String v;
v := @parameter: org.apache.activemq.protobuf.Buffer;
v = virtualinvoke v.<org.apache.activemq.protobuf.Buffer: int getLength()>();
v = newarray (char)[v];
v = 0;
label:
if v >= v goto label;
v = virtualinvoke v.<org.apache.activemq.protobuf.Buffer: byte byteAt(int)>(v);
v = v & 255;
v[v] = v;
v = v + 1;
goto label;
label:
v = new java.lang.String;
specialinvoke v.<java.lang.String: void <init>(char[])>(v);
return v;
}
}