Package com.onionnetworks.fec

Examples of com.onionnetworks.fec.PureCode.decode()


    System.arraycopy(repairBufs, 0, repairBufs2, 0, repairBufs.length);
    System.out.println("Getting ready for benchmarking decode()");
    t1 = System.currentTimeMillis();
    maybeNative.decode(repairBufs, index);
    t2 = System.currentTimeMillis();
    pureCode.decode(repairBufs2, indexBackup);
    t3 = System.currentTimeMillis();

    float dNativeDecode = t2 - t1;
    float dPureDecode = t3 - t2;
View Full Code Here


            blockNumbers[target] = i + dataBlocks.length;
            System.arraycopy(checkBlocks[i], 0, dataBlocks[target], 0, blockLength);
        }
       
        // Now do the decode.
        codec.decode(buffers, blockNumbers);
        // The data blocks are now decoded and in the correct locations.
    }

    /** Cache of PureCode by {k,n}. The memory usage is relatively small so we account for it in
     * the FEC jobs, see maxMemoryOverheadDecode() etc. */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.