package o; import java.io.ByteArrayOutputStream; import java.io.IOException; /* loaded from: classes6.dex */ public final class goH extends AbstractC15315gnE implements InterfaceC15322gnQ { private static final char[] d = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; private final byte[] a; /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final boolean d() { return false; } public goH(byte[] bArr) { this.a = bArr; } @Override // o.InterfaceC15322gnQ public final String j() { StringBuffer stringBuffer = new StringBuffer("#"); ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); try { new gnG(byteArrayOutputStream).d(this); byte[] byteArray = byteArrayOutputStream.toByteArray(); for (int i = 0; i != byteArray.length; i++) { char[] cArr = d; stringBuffer.append(cArr[(byteArray[i] >>> 4) & 15]); stringBuffer.append(cArr[byteArray[i] & 15]); } return stringBuffer.toString(); } catch (IOException unused) { throw new RuntimeException("internal error encoding BitString"); } } public final String toString() { return j(); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final int c() { return goV.d(this.a.length) + 1 + this.a.length; } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE protected final boolean e(AbstractC15315gnE abstractC15315gnE) { if (abstractC15315gnE instanceof goH) { return grK.b(this.a, ((goH) abstractC15315gnE).a); } return false; } @Override // o.AbstractC15346gnv public final int hashCode() { return grK.c(this.a); } /* JADX INFO: Access modifiers changed from: package-private */ @Override // o.AbstractC15315gnE public final void c(gnG gng) throws IOException { byte[] bArr = this.a; gng.a(28); gng.d(bArr.length); gng.a.write(bArr); } }