int maybeSignature = ByteUtils.readInt(bis); if (maybeSignature == FormatVersion.SIGNATURE){ formatVersion = ByteUtils.readInt(bis); numClasses = ByteUtils.readInt(bis); classHierarchyVersions = new int[classHierarchySize]; for (int j = 0; j < classHierarchySize; j++){ classHierarchyVersions[j] = ByteUtils.readInt(bis); int classLength = ByteUtils.readInt(bis); String className = readString(bis, classLength); int fields = ByteUtils.readInt(bis); bytes += (8 + aliasWidth + classLength); int fieldNameLength = ByteUtils.readInt(bis); String fieldName = readString(bis, fieldNameLength); BinaryClassField bcf = new BinaryClassField(fieldName, fieldAlias, fieldType); int numLocs = ByteUtils.readInt(bis); bytes = 4; locationTable.clear(); for(int i = 0; i < numLocs; i++) { int id = ByteUtils.readInt(bis); int loc = ByteUtils.readInt(bis); locationTable.put(id, loc); bytes += 8;
int maybeSignature = ByteUtils.readInt(bis); if (maybeSignature == FormatVersion.SIGNATURE){ formatVersion = ByteUtils.readInt(bis); numClasses = ByteUtils.readInt(bis); classHierarchyVersions = new int[classHierarchySize]; for (int j = 0; j < classHierarchySize; j++){ classHierarchyVersions[j] = ByteUtils.readInt(bis); int classLength = ByteUtils.readInt(bis); String className = readString(bis, classLength); int fields = ByteUtils.readInt(bis); bytes += (8 + aliasWidth + classLength); int fieldNameLength = ByteUtils.readInt(bis); String fieldName = readString(bis, fieldNameLength); BinaryClassField bcf = new BinaryClassField(fieldName, fieldAlias, fieldType); int numLocs = ByteUtils.readInt(bis); bytes = 4; locationTable.clear(); for(int i = 0; i < numLocs; i++) { int id = ByteUtils.readInt(bis); int loc = ByteUtils.readInt(bis); locationTable.put(id, loc); bytes += 8;
int maybeSignature = ByteUtils.readInt(bis); if (maybeSignature == FormatVersion.SIGNATURE){ formatVersion = ByteUtils.readInt(bis); numClasses = ByteUtils.readInt(bis); classHierarchyVersions = new int[classHierarchySize]; for (int j = 0; j < classHierarchySize; j++){ classHierarchyVersions[j] = ByteUtils.readInt(bis); int classLength = ByteUtils.readInt(bis); String className = readString(bis, classLength); int fields = ByteUtils.readInt(bis); bytes += (8 + aliasWidth + classLength); int fieldNameLength = ByteUtils.readInt(bis); String fieldName = readString(bis, fieldNameLength); BinaryClassField bcf = new BinaryClassField(fieldName, fieldAlias, fieldType); int numLocs = ByteUtils.readInt(bis); bytes = 4; locationTable.clear(); for(int i = 0; i < numLocs; i++) { int id = ByteUtils.readInt(bis); int loc = ByteUtils.readInt(bis); locationTable.put(id, loc); bytes += 8;