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/utils/
DHapUtils.java447 ByteBuffer encodeBytes = ByteBuffer.allocate(encodeSize); in encodeListOfPairsToByteArray() local
448 encodeBytes.order(ByteOrder.LITTLE_ENDIAN); in encodeListOfPairsToByteArray()
449 encodeBytes.putInt(CONTENT_VERSION); // version in encodeListOfPairsToByteArray()
450 encodeBytes.putInt(BLOCK_NUMBER); // block number in encodeListOfPairsToByteArray()
453 encodeBytes.putInt(INT_SIZE + INT_SIZE + second.length); in encodeListOfPairsToByteArray()
454 encodeBytes.putInt(pair.getFirst()); in encodeListOfPairsToByteArray()
455 encodeBytes.putInt(second.length); in encodeListOfPairsToByteArray()
456 encodeBytes.put(second); in encodeListOfPairsToByteArray()
458 return encodeBytes.array(); in encodeListOfPairsToByteArray()