コード例 #1
0
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;
}
コード例 #2
0
ファイル: RLEDecoder.cpp プロジェクト: VinceZK/LRCS_WIN
//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;
}
コード例 #3
0
ファイル: RLEDecoder.cpp プロジェクト: VinceZK/LRCS_WIN
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;
}