Lines Matching refs:img
160 public static long getMetadataPosition(RandomAccessFile img) in getMetadataPosition() argument
162 img.seek(EXT4_SB_OFFSET_MAGIC); in getMetadataPosition()
163 int magic = fromle(img.readShort()); in getMetadataPosition()
169 img.seek(EXT4_SB_OFFSET_BLOCKS_COUNT_LO); in getMetadataPosition()
170 long blocksCountLo = fromle(img.readInt()); in getMetadataPosition()
172 img.seek(EXT4_SB_OFFSET_LOG_BLOCK_SIZE); in getMetadataPosition()
173 long logBlockSize = fromle(img.readInt()); in getMetadataPosition()
175 img.seek(EXT4_SB_OFFSET_BLOCKS_COUNT_HI); in getMetadataPosition()
176 long blocksCountHi = fromle(img.readInt()); in getMetadataPosition()
217 private void readHashTree(RandomAccessFile img, byte[] table) in readHashTree() argument
254 img.seek(hashStart); in readHashTree()
259 img.readFully(hashTree); in readHashTree()
266 try (RandomAccessFile img = new RandomAccessFile(image, "r")) { in readVerityData() argument
267 imageSize = getMetadataPosition(img); in readVerityData()
268 img.seek(imageSize); in readVerityData()
270 int magic = fromle(img.readInt()); in readVerityData()
276 int version = fromle(img.readInt()); in readVerityData()
283 img.readFully(signature); in readVerityData()
285 int tableSize = fromle(img.readInt()); in readVerityData()
288 img.readFully(table); in readVerityData()
290 readHashTree(img, table); in readVerityData()
363 try (RandomAccessFile img = new RandomAccessFile(image, "r")) { in verifyData() argument
372 img.readFully(dataBlock); in verifyData()