Sha256: 5638aa75158d70d80d328dc5fa4da6d07b09ce0eff7cc736621309127d67bfcf

Contents?: true

Size: 384 Bytes

Versions: 6

Compression:

Stored size: 384 Bytes

Contents

#include <SWFFilter.h>
#include "SWF.h"

namespace SWF {

Filter *Filter::get( Reader *r, int end, Context *ctx ) {
	int type = r->getByte();
	int len = end - r->getPosition();
	
	Filter* ret = getByType( type );

	if( !ret ) {
		Filter* ret = new UnknownFilter();
	}

	if( ret ) {
		ret->setType( type );
		ret->setLength( len );
		ret->parse( r, end, ctx );
	} 

	return ret;
}	

}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
swfmill-0.0.6 ext/swfmill/src/SWFFilter.cpp
swfmill-0.0.5 ext/swfmill/src/SWFFilter.cpp
swfmill-0.0.4 ext/swfmill/src/SWFFilter.cpp
swfmill-0.0.3 ext/swfmill/src/SWFFilter.cpp
swfmill-0.0.2 ext/swfmill/src/SWFFilter.cpp
swfmill-0.0.1 ext/swfmill/src/SWFFilter.cpp