k
byte[]'s that contain the sourcepackets to be encoded. Often these byte[]'s are actually references to a single byte[] that contains the entire source block, then you must simply vary the srcOff's to pass it in in this fashion. src[0] will point to the 1st packet, src[1] to the second, etc.
@param srcOff An array of integers which specifies the offset of eacheach packet within its associated byte[].
@param repair Much like src, variable points to a number of buffersto which the encoded repair packets will be written. This array should be the same length as repairOff and index.
@param repairOff This is the repair analog to srcOff.
@param index This int[] specifies the indexes of the packets to beencoded and written to repair
. These indexes must be between 0..n (should probably be k..n, because encoding < k is a NOP)
@param packetLength the packetLength in bytes. All of the buffersin src and repair are assumed to be this long.
|
|