public class OutputInputByteTableCodingLoop extends CodingLoopBase
ALL_CODING_LOOPS| 构造器和说明 |
|---|
OutputInputByteTableCodingLoop() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkSomeShards(byte[][] matrixRows,
byte[][] inputs,
int inputCount,
byte[][] toCheck,
int checkCount,
int offset,
int byteCount,
byte[] tempBuffer)
Multiplies a subset of rows from a coding matrix by a full set of
input shards to produce some output shards, and checks that the
the data is those shards matches what's expected.
|
void |
codeSomeShards(byte[][] matrixRows,
byte[][] inputs,
int inputCount,
byte[][] outputs,
int outputCount,
int offset,
int byteCount)
Multiplies a subset of rows from a coding matrix by a full set of
input shards to produce some output shards.
|
public void codeSomeShards(byte[][] matrixRows,
byte[][] inputs,
int inputCount,
byte[][] outputs,
int outputCount,
int offset,
int byteCount)
CodingLoopmatrixRows - The rows from the matrix to use.inputs - An array of byte arrays, each of which is one input shard.
The inputs array may have extra buffers after the ones
that are used. They will be ignored. The number of
inputs used is determined by the length of the
each matrix row.inputCount - The number of input byte arrays.outputs - Byte arrays where the computed shards are stored. The
outputs array may also have extra, unused, elements
at the end. The number of outputs computed, and the
number of matrix rows used, is determined by
outputCount.outputCount - The number of outputs to compute.offset - The index in the inputs and output of the first byte
to process.byteCount - The number of bytes to process.public boolean checkSomeShards(byte[][] matrixRows,
byte[][] inputs,
int inputCount,
byte[][] toCheck,
int checkCount,
int offset,
int byteCount,
byte[] tempBuffer)
CodingLoopcheckSomeShards 在接口中 CodingLoopcheckSomeShards 在类中 CodingLoopBasematrixRows - The rows from the matrix to use.inputs - An array of byte arrays, each of which is one input shard.
The inputs array may have extra buffers after the ones
that are used. They will be ignored. The number of
inputs used is determined by the length of the
each matrix row.inputCount - THe number of input byte arrays.toCheck - Byte arrays where the computed shards are stored. The
outputs array may also have extra, unused, elements
at the end. The number of outputs computed, and the
number of matrix rows used, is determined by
outputCount.checkCount - The number of outputs to compute.offset - The index in the inputs and output of the first byte
to process.byteCount - The number of bytes to process.tempBuffer - A place to store temporary results. May be null.Copyright © 2022. All rights reserved.