Preparing for next version of CTDB

This commit is contained in:
chudov
2011-10-27 20:50:11 +00:00
parent 2299e5f920
commit b84f1de118
9 changed files with 154 additions and 355 deletions

View File

@@ -6,11 +6,8 @@ namespace CUETools.CTDB
{
public class DBEntry
{
public byte[] parity;
public int pos;
public int len;
public ushort[,] syndrome;
public int conf;
public int npar;
public int stride;
public int offset;
public uint crc;
@@ -22,20 +19,25 @@ namespace CUETools.CTDB
public CDImageLayout toc;
public string hasParity;
public DBEntry(byte[] parity, int pos, int len, int conf, int npar, int stride, uint crc, string id, CDImageLayout toc, string hasParity)
public DBEntry(ushort[,] syndrome, int conf, int stride, uint crc, string id, CDImageLayout toc, string hasParity)
{
this.parity = parity;
this.syndrome = syndrome;
this.id = id;
this.pos = pos;
this.len = len;
this.conf = conf;
this.crc = crc;
this.npar = npar;
this.stride = stride;
this.toc = toc;
this.hasParity = hasParity;
}
public int Npar
{
get
{
return syndrome.GetLength(1);
}
}
public string Status
{
get