in jsign-core/src/main/java/net/jsign/mscab/CFHeader.java [147:169]
public void write(ByteBuffer buffer) {
buffer.put(this.signature);
buffer.putInt((int) this.csumHeader);
buffer.putInt((int) this.cbCabinet);
buffer.putInt((int) this.csumFolders);
buffer.putInt((int) this.coffFiles);
buffer.putInt((int) this.csumFiles);
buffer.put(this.versionMinor);
buffer.put(this.versionMajor);
buffer.putShort((short) this.cFolders);
buffer.putShort((short) this.cFiles);
buffer.putShort((short) this.flags);
buffer.putShort((short) this.setID);
buffer.putShort((short) this.iCabinet);
if (isReservePresent()) {
buffer.putShort((short) this.cbCFHeader);
buffer.put((byte) this.cbCFFolder);
buffer.put((byte) this.cbCFData);
if (this.cbCFHeader > 0) {
buffer.put(this.abReserved);
}
}
}