internal LinkCell(Cell cell, BinaryReader rd)
 {
     this.numBytes        = rd.ReadInt64();
     this.numLinks        = rd.ReadInt64();
     this.indexStride     = rd.ReadInt32();
     this.compressionCode = (LinkCompression)rd.ReadUInt32();
     this.cell            = cell;
     this.startPos        = -1;
     this.idxOffsets      = null;
     this.bytes           = null;
 }
Exemple #2
0
 internal static IntStreamCompressor New(LinkCompression lc)
 {
     switch (lc) {
     case LinkCompression.None:
       return new DummyIntStreamCompressor();
     case LinkCompression.VarByte:
       return new VarByteIntStreamCompressor();
     case LinkCompression.VarNybble:
       return new VarNybbleIntStreamCompressor();
     default:
       throw new Exception("Illegal LinkCompression argument");
       }
 }
        internal static IntStreamCompressor New(LinkCompression lc)
        {
            switch (lc)
            {
            case LinkCompression.None:
                return(new DummyIntStreamCompressor());

            case LinkCompression.VarByte:
                return(new VarByteIntStreamCompressor());

            case LinkCompression.VarNybble:
                return(new VarNybbleIntStreamCompressor());

            default:
                throw new Exception("Illegal LinkCompression argument");
            }
        }
Exemple #4
0
 internal LinkCell(Cell cell, BinaryReader rd)
 {
     this.numBytes = rd.ReadInt64();
     this.numLinks = rd.ReadInt64();
     this.indexStride = rd.ReadInt32();
     this.compressionCode = (LinkCompression)rd.ReadUInt32();
     this.cell = cell;
     this.startPos = -1;
     this.idxOffsets = null;
     this.bytes = null;
 }