Home
last modified time | relevance | path

Searched refs:swapHalfWord (Results 1 – 3 of 3) sorted by relevance

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/cpio/
DCpioArchiveOutputStream.java267 final boolean swapHalfWord = true; in writeHeader()
268 writeBinaryLong(MAGIC_OLD_BINARY, 2, swapHalfWord); in writeHeader()
269 writeOldBinaryEntry(e, swapHalfWord); in writeHeader()
342 final boolean swapHalfWord) throws IOException { in writeOldBinaryEntry() argument
358 writeBinaryLong(device, 2, swapHalfWord); in writeOldBinaryEntry()
359 writeBinaryLong(inode, 2, swapHalfWord); in writeOldBinaryEntry()
360 writeBinaryLong(entry.getMode(), 2, swapHalfWord); in writeOldBinaryEntry() local
361 writeBinaryLong(entry.getUID(), 2, swapHalfWord); in writeOldBinaryEntry() local
362 writeBinaryLong(entry.getGID(), 2, swapHalfWord); in writeOldBinaryEntry() local
363 writeBinaryLong(entry.getNumberOfLinks(), 2, swapHalfWord); in writeOldBinaryEntry() local
[all …]
DCpioArchiveInputStream.java352 private long readBinaryLong(final int length, final boolean swapHalfWord) in readBinaryLong() argument
356 return CpioUtil.byteArray2long(tmp, swapHalfWord); in readBinaryLong()
430 private CpioArchiveEntry readOldBinaryEntry(final boolean swapHalfWord) in readOldBinaryEntry() argument
434 ret.setDevice(readBinaryLong(2, swapHalfWord)); in readOldBinaryEntry()
435 ret.setInode(readBinaryLong(2, swapHalfWord)); in readOldBinaryEntry()
436 final long mode = readBinaryLong(2, swapHalfWord); in readOldBinaryEntry()
440 ret.setUID(readBinaryLong(2, swapHalfWord)); in readOldBinaryEntry()
441 ret.setGID(readBinaryLong(2, swapHalfWord)); in readOldBinaryEntry()
442 ret.setNumberOfLinks(readBinaryLong(2, swapHalfWord)); in readOldBinaryEntry()
443 ret.setRemoteDevice(readBinaryLong(2, swapHalfWord)); in readOldBinaryEntry()
[all …]
DCpioUtil.java46 static long byteArray2long(final byte[] number, final boolean swapHalfWord) { in byteArray2long() argument
56 if (!swapHalfWord) { in byteArray2long()
88 final boolean swapHalfWord) { in long2byteArray() argument
103 if (!swapHalfWord) { in long2byteArray()