Skip to content

Instantly share code, notes, and snippets.

View nfalliere's full-sized avatar

Nicolas Falliere nfalliere

View GitHub Profile
// reference: https://www.pnfsoftware.com/jeb/apidoc
// Print all identifiers supported by the currently instantiated JEB engines
void printAllAvailableIdentifiers(IEnginesContext engctx) {
for(IUnitIdentifier id: engctx.getUnitIdentifiers()) {
logger.info(id.getFormatType());
}
}
// ... or:
@nfalliere
nfalliere / JebUnitReparseExample.java
Created November 12, 2018 21:17
Sample code showing how to reparse unit's binary data as another format
// sample code, needs adjusting/customizing (see TODO tags)
// call reparse() with input information set in a ReparseInformation object
public class ReparseInformation {
IUnit unit;
String subUnitName;
String wantedType;
long offset;
long size;
}