/** Number of driver descriptor entries. Won't be more than 31 in a valid structure. */
 public int getSbDrvrCount() {
   return Util.unsign(getRawSbDrvrCount());
 }
Example #2
0
 public void printFields(PrintStream ps, String prefix) {
   ps.println(prefix + " key:");
   key.print(ps, prefix + "  ");
   ps.println(prefix + " index: " + Util.unsign(getIndex()));
 }
 /** Reserved. */
 public int getSbDevId() {
   return Util.unsign(getRawSbDevId());
 }
 /** Reserved. */
 public long getSbData() {
   return Util.unsign(getRawSbData());
 }
 /** Block size of the device. */
 public int getSbBlkSize() {
   return Util.unsign(getRawSbBlkSize());
 }
 /** Number of blocks on the device. */
 public long getSbBlkCount() {
   return Util.unsign(getRawSbBlkCount());
 }
 /** Device signature. (Should be "ER"...) */
 public int getSbSig() {
   return Util.unsign(getRawSbSig());
 }
Example #8
0
 public void printFields(PrintStream ps, String prefix) {
   ps.println(prefix + " xdrStABN: " + Util.unsign(getXdrStABN()));
   ps.println(prefix + " xdrNumABlks: " + Util.unsign(getXdrNumABlks()));
 }
 private long getDataLength(long dataPos) {
   byte[] dataLengthBytes = new byte[4];
   forkStream.readFrom(dataPos, dataLengthBytes);
   return Util.unsign(Util.readIntBE(dataLengthBytes));
 }
 private long getDataPos(ReferenceListEntry entry) {
   ResourceHeader header = getHeader();
   return Util.unsign(header.getDataOffset()) + entry.getResourceDataOffset();
 }
 public ResourceMap getResourceMap() {
   ResourceHeader header = getHeader();
   return new ResourceMap(forkStream, Util.unsign(header.getMapOffset()));
 }