Searched refs:encodeBytes (Results 1 – 1 of 1) sorted by relevance
451 ByteBuffer encodeBytes = ByteBuffer.allocate(encodeSize); in encodeListOfPairsToByteArray() local452 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()