Block* RLEGenericDecoder::skipToBlock(unsigned int blockPos_) { if (!initialized) throw new CodingException("RLEGenericDecoder: Error, decoder not initialized with buffer"); if (!skipToTriple(blockPos_)) return NULL; RLETriple* triple=getNextTriple(); if (triple==NULL) return NULL; block->setTriple(triple); return block; }
//consume the block wih position blockPos_ bool RLEDecoder::skipToPos(unsigned int blockPos_) { throw new CodingException("DNA 7/2/06: I don't think this method is correct but I don't think it matters since this method never gets called in runtime code. Thus, I'll place this here to see if it gets called."); if (!initialized) throw new CodingException("RLEDecoder: Error, decoder not initialized with buffer"); if (!skipToTriple(blockPos_)) return false; RLETriple* triple = getNextTriple(); if (triple == NULL) return false; return true; }
Block* RLEDecoder::skipToBlock(unsigned int blockPos_) { if (!initialized) throw new CodingException("RLEDecoder: Error, decoder not initialized with buffer"); if (!skipToTriple(blockPos_)) return NULL; RLETriple* triple = getNextTriple(); if (triple == NULL) return NULL; if (block == NULL) { block = new RLEBlock(triple, valSorted); } else { block->setTriple(triple); } return block; }