Home
last modified time | relevance | path

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

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/utils/
DHapUtils.java451 ByteBuffer encodeBytes = ByteBuffer.allocate(encodeSize); in encodeListOfPairsToByteArray() local
452 encodeBytes.order(ByteOrder.LITTLE_ENDIAN); in encodeListOfPairsToByteArray()
453 encodeBytes.putInt(CONTENT_VERSION); // version in encodeListOfPairsToByteArray()
454 encodeBytes.putInt(BLOCK_NUMBER); // block number in encodeListOfPairsToByteArray()
457 encodeBytes.putInt(INT_SIZE + INT_SIZE + second.length); in encodeListOfPairsToByteArray()
458 encodeBytes.putInt(pair.getFirst()); in encodeListOfPairsToByteArray()
459 encodeBytes.putInt(second.length); in encodeListOfPairsToByteArray()
460 encodeBytes.put(second); in encodeListOfPairsToByteArray()
462 return encodeBytes.array(); in encodeListOfPairsToByteArray()