1 package com
.google
.android
.gms
.internal
;
3 public final class ds
{
4 private final byte[] a
;
10 private int g
= Integer
.MAX_VALUE
;
13 private int j
= 67108864;
15 private ds(byte[] bArr
, int i2
, int i3
) {
22 public static long a(long j2
) {
23 return (j2
>>> 1) ^
(-(1 & j2
));
26 public static ds
a(byte[] bArr
) {
27 return a(bArr
, 0, bArr
.length
);
30 public static ds
a(byte[] bArr
, int i2
, int i3
) {
31 return new ds(bArr
, i2
, i3
);
57 public void a(int i2
) {
63 public void a(ea eaVar
) {
65 if (this.h
>= this.i
) {
76 public void a(ea eaVar
, int i2
) {
77 if (this.h
>= this.i
) {
86 public byte[] a(int i2
, int i3
) {
90 byte[] bArr
= new byte[i3
];
91 System
.arraycopy(this.a
, this.b
+ i2
, bArr
, 0, i3
);
105 public boolean b(int i2
) {
118 a(ed
.a(ed
.b(i2
), 4));
131 return Float
.intBitsToFloat(k());
134 public int c(int i2
) {
138 int i3
= this.e
+ i2
;
152 public void d(int i2
) {
161 public void e(int i2
) {
162 if (i2
> this.e
- this.b
) {
163 throw new IllegalArgumentException("Position " + i2
+ " is beyond current " + (this.e
- this.b
));
165 throw new IllegalArgumentException("Bad position " + i2
);
167 this.e
= this.b
+ i2
;
175 public byte[] f(int i2
) {
178 } else if (this.e
+ i2
> this.g
) {
181 } else if (i2
<= this.c
- this.e
) {
182 byte[] bArr
= new byte[i2
];
183 System
.arraycopy(this.a
, this.e
, bArr
, 0, i2
);
193 if (i2
> this.c
- this.e
|| i2
<= 0) {
194 return new String(f(i2
), "UTF-8");
196 String str
= new String(this.a
, this.e
, i2
, "UTF-8");
197 this.e
= i2
+ this.e
;
201 public void g(int i2
) {
204 } else if (this.e
+ i2
> this.g
) {
207 } else if (i2
<= this.c
- this.e
) {
223 int i2
= p
& Byte
.MAX_VALUE
;
226 return i2
| (p2
<< 7);
228 int i3
= i2
| ((p2
& Byte
.MAX_VALUE
) << 7);
231 return i3
| (p3
<< 14);
233 int i4
= i3
| ((p3
& Byte
.MAX_VALUE
) << 14);
236 return i4
| (p4
<< 21);
238 int i5
= i4
| ((p4
& Byte
.MAX_VALUE
) << 21);
240 int i6
= i5
| (p5
<< 28);
244 for (int i7
= 0; i7
< 5; i7
++) {
254 for (int i2
= 0; i2
< 64; i2
+= 7) {
256 j2
|= ((long) (p
& Byte
.MAX_VALUE
)) << i2
;
257 if ((p
& 128) == 0) {
265 return (p() & 255) | ((p() & 255) << 8) | ((p() & 255) << 16) | ((p() & 255) << 24);
271 return ((((long) p2
) & 255) << 8) | (((long) p
) & 255) | ((((long) p()) & 255) << 16) | ((((long) p()) & 255) << 24) | ((((long) p()) & 255) << 32) | ((((long) p()) & 255) << 40) | ((((long) p()) & 255) << 48) | ((((long) p()) & 255) << 56);
275 if (this.g
== Integer
.MAX_VALUE
) {
278 return this.g
- this.e
;
282 return this.e
== this.c
;
286 return this.e
- this.b
;
290 if (this.e
== this.c
) {
293 byte[] bArr
= this.a
;