BBGamelib.flash.imp.Flash.readHeader C# (CSharp) Method

readHeader() public method

public readHeader ( byte data, Cursor cursor ) : void
data byte
cursor Cursor
return void
		void readHeader(byte[] data, Cursor cursor){
			int len = Utils.ReadLength (data, cursor);
			int newIndex = cursor.index + len;

			version = Utils.ReadInt32(data, cursor);

			int supportedVersion = Utils.ReadInt32 (data, cursor);
			NSUtils.Assert (LIB_VERSION >= supportedVersion, "BBGamelib:flash: library {0} is not supported by swf parser {1} ",
			                versionToString(LIB_VERSION), versionToString(supportedVersion)); 

			flashVersion = Utils.ReadByte (data, cursor);
			frameRate = Utils.ReadByte (data, cursor);
			frameSize = Utils.ReadVector2 (data, cursor);
			prefix = Utils.ReadString (data, cursor);

			cursor.index = newIndex;
		}
		void readDefines(byte[] data, Cursor cursor){