byte[] byteArr = new byte[blobArrWithLengthStripped.length + compressedUInt.length];
System.arraycopy(compressedUInt, 0, byteArr, 0, compressedUInt.length);
System.arraycopy(blobArrWithLengthStripped, 0, byteArr, compressedUInt.length, blobArrWithLengthStripped.length);
ByteBuffer buf = ByteBuffer.wrap(byteArr);
Sig sig = pefile.new Sig(buf);
int desc = sig.readByte();
switch (desc) {
// GENERICINST (CLASS | VALUETYPE) TypeDefOrRefEncodred GenArgCount Type*
case Signature.ELEMENT_TYPE_GENERICINST: // i.e. 0x15