mirror of
				https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
				synced 2025-10-27 02:19:07 -07:00 
			
		
		
		
	Add mostly deobfuscated package, class and function name source
This commit is contained in:
		
							
								
								
									
										53
									
								
								src/_codec/versions/version1/a3d/materials/CodecA3DImage.as
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										53
									
								
								src/_codec/versions/version1/a3d/materials/CodecA3DImage.as
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,53 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.osgi.OSGi; | ||||
|    import alternativa.osgi.service.clientlog.IClientLog; | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import commons.Id; | ||||
|    import versions.version1.a3d.materials.A3DImage; | ||||
|     | ||||
|    public class CodecA3DImage implements ICodec | ||||
|    { | ||||
|       public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); | ||||
|        | ||||
|       private var §_-2o§:ICodec; | ||||
|        | ||||
|       private var §_-aV§:ICodec; | ||||
|        | ||||
|       public function CodecA3DImage() | ||||
|       { | ||||
|          super(); | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.§_-aV§ = protocol.getCodec(new TypeCodecInfo(String,true)); | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          log = IClientLog(OSGi.getInstance().getService(IClientLog)); | ||||
|          var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","id",value_id); | ||||
|          var value_url:String = this.§_-aV§.decode(protocolBuffer) as String; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","url",value_url); | ||||
|          return new A3DImage(value_id,value_url); | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var struct:A3DImage = A3DImage(object); | ||||
|          this.§_-2o§.encode(protocolBuffer,struct.id); | ||||
|          this.§_-aV§.encode(protocolBuffer,struct.url); | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
							
								
								
									
										85
									
								
								src/_codec/versions/version1/a3d/materials/CodecA3DMap.as
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										85
									
								
								src/_codec/versions/version1/a3d/materials/CodecA3DMap.as
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,85 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.osgi.OSGi; | ||||
|    import alternativa.osgi.service.clientlog.IClientLog; | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import alternativa.types.Float; | ||||
|    import alternativa.types.UShort; | ||||
|    import commons.Id; | ||||
|    import versions.version1.a3d.materials.A3DMap; | ||||
|     | ||||
|    public class CodecA3DMap implements ICodec | ||||
|    { | ||||
|       public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); | ||||
|        | ||||
|       private var §_-mC§:ICodec; | ||||
|        | ||||
|       private var §_-2o§:ICodec; | ||||
|        | ||||
|       private var §_-2N§:ICodec; | ||||
|        | ||||
|       private var §_-K5§:ICodec; | ||||
|        | ||||
|       private var §_-Q5§:ICodec; | ||||
|        | ||||
|       private var §_-WH§:ICodec; | ||||
|        | ||||
|       private var §_-kh§:ICodec; | ||||
|        | ||||
|       public function CodecA3DMap() | ||||
|       { | ||||
|          super(); | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.§_-mC§ = protocol.getCodec(new TypeCodecInfo(UShort,false)); | ||||
|          this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.§_-2N§ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.§_-K5§ = protocol.getCodec(new TypeCodecInfo(Float,true)); | ||||
|          this.§_-Q5§ = protocol.getCodec(new TypeCodecInfo(Float,true)); | ||||
|          this.§_-WH§ = protocol.getCodec(new TypeCodecInfo(Float,true)); | ||||
|          this.§_-kh§ = protocol.getCodec(new TypeCodecInfo(Float,true)); | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          log = IClientLog(OSGi.getInstance().getService(IClientLog)); | ||||
|          var value_channel:uint = uint(this.§_-mC§.decode(protocolBuffer) as uint); | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","channel",value_channel); | ||||
|          var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","id",value_id); | ||||
|          var value_imageId:Id = this.§_-2N§.decode(protocolBuffer) as Id; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","imageId",value_imageId); | ||||
|          var value_uOffset:Number = Number(this.§_-K5§.decode(protocolBuffer) as Number); | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uOffset",value_uOffset); | ||||
|          var value_uScale:Number = Number(this.§_-Q5§.decode(protocolBuffer) as Number); | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uScale",value_uScale); | ||||
|          var value_vOffset:Number = Number(this.§_-WH§.decode(protocolBuffer) as Number); | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vOffset",value_vOffset); | ||||
|          var value_vScale:Number = Number(this.§_-kh§.decode(protocolBuffer) as Number); | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vScale",value_vScale); | ||||
|          return new A3DMap(value_channel,value_id,value_imageId,value_uOffset,value_uScale,value_vOffset,value_vScale); | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var struct:A3DMap = A3DMap(object); | ||||
|          this.§_-mC§.encode(protocolBuffer,struct.channel); | ||||
|          this.§_-2o§.encode(protocolBuffer,struct.id); | ||||
|          this.§_-2N§.encode(protocolBuffer,struct.imageId); | ||||
|          this.§_-K5§.encode(protocolBuffer,struct.uOffset); | ||||
|          this.§_-Q5§.encode(protocolBuffer,struct.uScale); | ||||
|          this.§_-WH§.encode(protocolBuffer,struct.vOffset); | ||||
|          this.§_-kh§.encode(protocolBuffer,struct.vScale); | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
| @@ -0,0 +1,83 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.osgi.OSGi; | ||||
|    import alternativa.osgi.service.clientlog.IClientLog; | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import commons.Id; | ||||
|    import versions.version1.a3d.materials.A3DMaterial; | ||||
|     | ||||
|    public class CodecA3DMaterial implements ICodec | ||||
|    { | ||||
|       public static var log:IClientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); | ||||
|        | ||||
|       private var §_-9A§:ICodec; | ||||
|        | ||||
|       private var §_-hw§:ICodec; | ||||
|        | ||||
|       private var §_-2o§:ICodec; | ||||
|        | ||||
|       private var §_-Hu§:ICodec; | ||||
|        | ||||
|       private var §_-GK§:ICodec; | ||||
|        | ||||
|       private var §_-LZ§:ICodec; | ||||
|        | ||||
|       private var §_-FU§:ICodec; | ||||
|        | ||||
|       public function CodecA3DMaterial() | ||||
|       { | ||||
|          super(); | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.§_-9A§ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.§_-hw§ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.§_-2o§ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.§_-Hu§ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.§_-GK§ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.§_-LZ§ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|          this.§_-FU§ = protocol.getCodec(new TypeCodecInfo(Id,true)); | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          log = IClientLog(OSGi.getInstance().getService(IClientLog)); | ||||
|          var value_diffuseMapId:Id = this.§_-9A§.decode(protocolBuffer) as Id; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","diffuseMapId",value_diffuseMapId); | ||||
|          var value_glossinessMapId:Id = this.§_-hw§.decode(protocolBuffer) as Id; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","glossinessMapId",value_glossinessMapId); | ||||
|          var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","id",value_id); | ||||
|          var value_lightMapId:Id = this.§_-Hu§.decode(protocolBuffer) as Id; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","lightMapId",value_lightMapId); | ||||
|          var value_normalMapId:Id = this.§_-GK§.decode(protocolBuffer) as Id; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","normalMapId",value_normalMapId); | ||||
|          var value_opacityMapId:Id = this.§_-LZ§.decode(protocolBuffer) as Id; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","opacityMapId",value_opacityMapId); | ||||
|          var value_specularMapId:Id = this.§_-FU§.decode(protocolBuffer) as Id; | ||||
|          log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","specularMapId",value_specularMapId); | ||||
|          return new A3DMaterial(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_specularMapId); | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var struct:A3DMaterial = A3DMaterial(object); | ||||
|          this.§_-9A§.encode(protocolBuffer,struct.diffuseMapId); | ||||
|          this.§_-hw§.encode(protocolBuffer,struct.glossinessMapId); | ||||
|          this.§_-2o§.encode(protocolBuffer,struct.id); | ||||
|          this.§_-Hu§.encode(protocolBuffer,struct.lightMapId); | ||||
|          this.§_-GK§.encode(protocolBuffer,struct.normalMapId); | ||||
|          this.§_-LZ§.encode(protocolBuffer,struct.opacityMapId); | ||||
|          this.§_-FU§.encode(protocolBuffer,struct.specularMapId); | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
| @@ -0,0 +1,59 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.codec.OptionalCodecDecorator; | ||||
|    import alternativa.protocol.impl.LengthCodecHelper; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import versions.version1.a3d.materials.A3DImage; | ||||
|     | ||||
|    public class VectorCodecA3DImageLevel1 implements ICodec | ||||
|    { | ||||
|       private var elementCodec:ICodec; | ||||
|        | ||||
|       private var optionalElement:Boolean; | ||||
|        | ||||
|       public function VectorCodecA3DImageLevel1(optionalElement:Boolean) | ||||
|       { | ||||
|          super(); | ||||
|          this.optionalElement = optionalElement; | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DImage,false)); | ||||
|          if(this.optionalElement) | ||||
|          { | ||||
|             this.elementCodec = new OptionalCodecDecorator(this.elementCodec); | ||||
|          } | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          var length:int = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|          var result:Vector.<A3DImage> = new Vector.<A3DImage>(length,true); | ||||
|          for(var i:int = 0; i < length; i++) | ||||
|          { | ||||
|             result[i] = A3DImage(this.elementCodec.decode(protocolBuffer)); | ||||
|          } | ||||
|          return result; | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var data:Vector.<A3DImage> = Vector.<A3DImage>(object); | ||||
|          var length:int = int(data.length); | ||||
|          LengthCodecHelper.encodeLength(protocolBuffer,length); | ||||
|          for(var i:int = 0; i < length; i++) | ||||
|          { | ||||
|             this.elementCodec.encode(protocolBuffer,data[i]); | ||||
|          } | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
| @@ -0,0 +1,89 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.codec.OptionalCodecDecorator; | ||||
|    import alternativa.protocol.impl.LengthCodecHelper; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import versions.version1.a3d.materials.A3DImage; | ||||
|     | ||||
|    public class VectorCodecA3DImageLevel2 implements ICodec | ||||
|    { | ||||
|       private var elementCodec:ICodec; | ||||
|        | ||||
|       private var optionalElement:Boolean; | ||||
|        | ||||
|       public function VectorCodecA3DImageLevel2(optionalElement:Boolean) | ||||
|       { | ||||
|          super(); | ||||
|          this.optionalElement = optionalElement; | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DImage,false)); | ||||
|          if(this.optionalElement) | ||||
|          { | ||||
|             this.elementCodec = new OptionalCodecDecorator(this.elementCodec); | ||||
|          } | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          var length2:int = 0; | ||||
|          var items2:Vector.<A3DImage> = null; | ||||
|          var i2:int = 0; | ||||
|          var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|          var result:Vector.<Vector.<A3DImage>> = new Vector.<Vector.<A3DImage>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<A3DImage>(length2,true); | ||||
|                result[i1] = items2; | ||||
|                for(i2 = 0; i2 < length2; i2++) | ||||
|                { | ||||
|                   items2[i2] = A3DImage(this.elementCodec.decode(protocolBuffer)); | ||||
|                } | ||||
|             } | ||||
|             i1++; | ||||
|          } | ||||
|          return result; | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          var items2:Vector.<A3DImage> = null; | ||||
|          var length2:int = 0; | ||||
|          var i2:int = 0; | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var data:Vector.<Vector.<A3DImage>> = Vector.<Vector.<A3DImage>>(object); | ||||
|          var length1:int = int(data.length); | ||||
|          LengthCodecHelper.encodeLength(protocolBuffer,length1); | ||||
|          for(var i1:int = 0; i1 < length1; i1++) | ||||
|          { | ||||
|             items2 = data[i1]; | ||||
|             if(items2 != null) | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(false); | ||||
|                length2 = int(items2.length); | ||||
|                LengthCodecHelper.encodeLength(protocolBuffer,length2); | ||||
|                for(i2 = 0; i2 < length2; i2++) | ||||
|                { | ||||
|                   this.elementCodec.encode(protocolBuffer,items2[i2]); | ||||
|                } | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(true); | ||||
|             } | ||||
|          } | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
| @@ -0,0 +1,119 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.codec.OptionalCodecDecorator; | ||||
|    import alternativa.protocol.impl.LengthCodecHelper; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import versions.version1.a3d.materials.A3DImage; | ||||
|     | ||||
|    public class VectorCodecA3DImageLevel3 implements ICodec | ||||
|    { | ||||
|       private var elementCodec:ICodec; | ||||
|        | ||||
|       private var optionalElement:Boolean; | ||||
|        | ||||
|       public function VectorCodecA3DImageLevel3(optionalElement:Boolean) | ||||
|       { | ||||
|          super(); | ||||
|          this.optionalElement = optionalElement; | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DImage,false)); | ||||
|          if(this.optionalElement) | ||||
|          { | ||||
|             this.elementCodec = new OptionalCodecDecorator(this.elementCodec); | ||||
|          } | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          var length2:int = 0; | ||||
|          var items2:Vector.<Vector.<A3DImage>> = null; | ||||
|          var i2:int = 0; | ||||
|          var length3:int = 0; | ||||
|          var items3:Vector.<A3DImage> = null; | ||||
|          var i3:int = 0; | ||||
|          var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|          var result:Vector.<Vector.<Vector.<A3DImage>>> = new Vector.<Vector.<Vector.<A3DImage>>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<Vector.<A3DImage>>(length2,true); | ||||
|                result[i1] = items2; | ||||
|                for(i2 = 0; i2 < length2; ) | ||||
|                { | ||||
|                   if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|                   { | ||||
|                      length3 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                      items3 = new Vector.<A3DImage>(length3,true); | ||||
|                      items2[i2] = items3; | ||||
|                      for(i3 = 0; i3 < length3; i3++) | ||||
|                      { | ||||
|                         items3[i3] = A3DImage(this.elementCodec.decode(protocolBuffer)); | ||||
|                      } | ||||
|                   } | ||||
|                   i2++; | ||||
|                } | ||||
|             } | ||||
|             i1++; | ||||
|          } | ||||
|          return result; | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          var items2:Vector.<Vector.<A3DImage>> = null; | ||||
|          var length2:int = 0; | ||||
|          var i2:int = 0; | ||||
|          var items3:Vector.<A3DImage> = null; | ||||
|          var length3:int = 0; | ||||
|          var i3:int = 0; | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var data:Vector.<Vector.<Vector.<A3DImage>>> = Vector.<Vector.<Vector.<A3DImage>>>(object); | ||||
|          var length1:int = int(data.length); | ||||
|          LengthCodecHelper.encodeLength(protocolBuffer,length1); | ||||
|          for(var i1:int = 0; i1 < length1; i1++) | ||||
|          { | ||||
|             items2 = data[i1]; | ||||
|             if(items2 != null) | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(false); | ||||
|                length2 = int(items2.length); | ||||
|                LengthCodecHelper.encodeLength(protocolBuffer,length2); | ||||
|                for(i2 = 0; i2 < length2; i2++) | ||||
|                { | ||||
|                   items3 = items2[i1]; | ||||
|                   if(items3 != null) | ||||
|                   { | ||||
|                      protocolBuffer.optionalMap.addBit(false); | ||||
|                      length3 = int(items3.length); | ||||
|                      LengthCodecHelper.encodeLength(protocolBuffer,length3); | ||||
|                      for(i3 = 0; i3 < length3; i3++) | ||||
|                      { | ||||
|                         this.elementCodec.encode(protocolBuffer,items3[i3]); | ||||
|                      } | ||||
|                   } | ||||
|                   else | ||||
|                   { | ||||
|                      protocolBuffer.optionalMap.addBit(true); | ||||
|                   } | ||||
|                } | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(true); | ||||
|             } | ||||
|          } | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
| @@ -0,0 +1,59 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.codec.OptionalCodecDecorator; | ||||
|    import alternativa.protocol.impl.LengthCodecHelper; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import versions.version1.a3d.materials.A3DMap; | ||||
|     | ||||
|    public class VectorCodecA3DMapLevel1 implements ICodec | ||||
|    { | ||||
|       private var elementCodec:ICodec; | ||||
|        | ||||
|       private var optionalElement:Boolean; | ||||
|        | ||||
|       public function VectorCodecA3DMapLevel1(optionalElement:Boolean) | ||||
|       { | ||||
|          super(); | ||||
|          this.optionalElement = optionalElement; | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMap,false)); | ||||
|          if(this.optionalElement) | ||||
|          { | ||||
|             this.elementCodec = new OptionalCodecDecorator(this.elementCodec); | ||||
|          } | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          var length:int = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|          var result:Vector.<A3DMap> = new Vector.<A3DMap>(length,true); | ||||
|          for(var i:int = 0; i < length; i++) | ||||
|          { | ||||
|             result[i] = A3DMap(this.elementCodec.decode(protocolBuffer)); | ||||
|          } | ||||
|          return result; | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var data:Vector.<A3DMap> = Vector.<A3DMap>(object); | ||||
|          var length:int = int(data.length); | ||||
|          LengthCodecHelper.encodeLength(protocolBuffer,length); | ||||
|          for(var i:int = 0; i < length; i++) | ||||
|          { | ||||
|             this.elementCodec.encode(protocolBuffer,data[i]); | ||||
|          } | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
| @@ -0,0 +1,89 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.codec.OptionalCodecDecorator; | ||||
|    import alternativa.protocol.impl.LengthCodecHelper; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import versions.version1.a3d.materials.A3DMap; | ||||
|     | ||||
|    public class VectorCodecA3DMapLevel2 implements ICodec | ||||
|    { | ||||
|       private var elementCodec:ICodec; | ||||
|        | ||||
|       private var optionalElement:Boolean; | ||||
|        | ||||
|       public function VectorCodecA3DMapLevel2(optionalElement:Boolean) | ||||
|       { | ||||
|          super(); | ||||
|          this.optionalElement = optionalElement; | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMap,false)); | ||||
|          if(this.optionalElement) | ||||
|          { | ||||
|             this.elementCodec = new OptionalCodecDecorator(this.elementCodec); | ||||
|          } | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          var length2:int = 0; | ||||
|          var items2:Vector.<A3DMap> = null; | ||||
|          var i2:int = 0; | ||||
|          var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|          var result:Vector.<Vector.<A3DMap>> = new Vector.<Vector.<A3DMap>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<A3DMap>(length2,true); | ||||
|                result[i1] = items2; | ||||
|                for(i2 = 0; i2 < length2; i2++) | ||||
|                { | ||||
|                   items2[i2] = A3DMap(this.elementCodec.decode(protocolBuffer)); | ||||
|                } | ||||
|             } | ||||
|             i1++; | ||||
|          } | ||||
|          return result; | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          var items2:Vector.<A3DMap> = null; | ||||
|          var length2:int = 0; | ||||
|          var i2:int = 0; | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var data:Vector.<Vector.<A3DMap>> = Vector.<Vector.<A3DMap>>(object); | ||||
|          var length1:int = int(data.length); | ||||
|          LengthCodecHelper.encodeLength(protocolBuffer,length1); | ||||
|          for(var i1:int = 0; i1 < length1; i1++) | ||||
|          { | ||||
|             items2 = data[i1]; | ||||
|             if(items2 != null) | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(false); | ||||
|                length2 = int(items2.length); | ||||
|                LengthCodecHelper.encodeLength(protocolBuffer,length2); | ||||
|                for(i2 = 0; i2 < length2; i2++) | ||||
|                { | ||||
|                   this.elementCodec.encode(protocolBuffer,items2[i2]); | ||||
|                } | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(true); | ||||
|             } | ||||
|          } | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
| @@ -0,0 +1,119 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.codec.OptionalCodecDecorator; | ||||
|    import alternativa.protocol.impl.LengthCodecHelper; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import versions.version1.a3d.materials.A3DMap; | ||||
|     | ||||
|    public class VectorCodecA3DMapLevel3 implements ICodec | ||||
|    { | ||||
|       private var elementCodec:ICodec; | ||||
|        | ||||
|       private var optionalElement:Boolean; | ||||
|        | ||||
|       public function VectorCodecA3DMapLevel3(optionalElement:Boolean) | ||||
|       { | ||||
|          super(); | ||||
|          this.optionalElement = optionalElement; | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMap,false)); | ||||
|          if(this.optionalElement) | ||||
|          { | ||||
|             this.elementCodec = new OptionalCodecDecorator(this.elementCodec); | ||||
|          } | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          var length2:int = 0; | ||||
|          var items2:Vector.<Vector.<A3DMap>> = null; | ||||
|          var i2:int = 0; | ||||
|          var length3:int = 0; | ||||
|          var items3:Vector.<A3DMap> = null; | ||||
|          var i3:int = 0; | ||||
|          var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|          var result:Vector.<Vector.<Vector.<A3DMap>>> = new Vector.<Vector.<Vector.<A3DMap>>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<Vector.<A3DMap>>(length2,true); | ||||
|                result[i1] = items2; | ||||
|                for(i2 = 0; i2 < length2; ) | ||||
|                { | ||||
|                   if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|                   { | ||||
|                      length3 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                      items3 = new Vector.<A3DMap>(length3,true); | ||||
|                      items2[i2] = items3; | ||||
|                      for(i3 = 0; i3 < length3; i3++) | ||||
|                      { | ||||
|                         items3[i3] = A3DMap(this.elementCodec.decode(protocolBuffer)); | ||||
|                      } | ||||
|                   } | ||||
|                   i2++; | ||||
|                } | ||||
|             } | ||||
|             i1++; | ||||
|          } | ||||
|          return result; | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          var items2:Vector.<Vector.<A3DMap>> = null; | ||||
|          var length2:int = 0; | ||||
|          var i2:int = 0; | ||||
|          var items3:Vector.<A3DMap> = null; | ||||
|          var length3:int = 0; | ||||
|          var i3:int = 0; | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var data:Vector.<Vector.<Vector.<A3DMap>>> = Vector.<Vector.<Vector.<A3DMap>>>(object); | ||||
|          var length1:int = int(data.length); | ||||
|          LengthCodecHelper.encodeLength(protocolBuffer,length1); | ||||
|          for(var i1:int = 0; i1 < length1; i1++) | ||||
|          { | ||||
|             items2 = data[i1]; | ||||
|             if(items2 != null) | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(false); | ||||
|                length2 = int(items2.length); | ||||
|                LengthCodecHelper.encodeLength(protocolBuffer,length2); | ||||
|                for(i2 = 0; i2 < length2; i2++) | ||||
|                { | ||||
|                   items3 = items2[i1]; | ||||
|                   if(items3 != null) | ||||
|                   { | ||||
|                      protocolBuffer.optionalMap.addBit(false); | ||||
|                      length3 = int(items3.length); | ||||
|                      LengthCodecHelper.encodeLength(protocolBuffer,length3); | ||||
|                      for(i3 = 0; i3 < length3; i3++) | ||||
|                      { | ||||
|                         this.elementCodec.encode(protocolBuffer,items3[i3]); | ||||
|                      } | ||||
|                   } | ||||
|                   else | ||||
|                   { | ||||
|                      protocolBuffer.optionalMap.addBit(true); | ||||
|                   } | ||||
|                } | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(true); | ||||
|             } | ||||
|          } | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
| @@ -0,0 +1,59 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.codec.OptionalCodecDecorator; | ||||
|    import alternativa.protocol.impl.LengthCodecHelper; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import versions.version1.a3d.materials.A3DMaterial; | ||||
|     | ||||
|    public class VectorCodecA3DMaterialLevel1 implements ICodec | ||||
|    { | ||||
|       private var elementCodec:ICodec; | ||||
|        | ||||
|       private var optionalElement:Boolean; | ||||
|        | ||||
|       public function VectorCodecA3DMaterialLevel1(optionalElement:Boolean) | ||||
|       { | ||||
|          super(); | ||||
|          this.optionalElement = optionalElement; | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMaterial,false)); | ||||
|          if(this.optionalElement) | ||||
|          { | ||||
|             this.elementCodec = new OptionalCodecDecorator(this.elementCodec); | ||||
|          } | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          var length:int = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|          var result:Vector.<A3DMaterial> = new Vector.<A3DMaterial>(length,true); | ||||
|          for(var i:int = 0; i < length; i++) | ||||
|          { | ||||
|             result[i] = A3DMaterial(this.elementCodec.decode(protocolBuffer)); | ||||
|          } | ||||
|          return result; | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var data:Vector.<A3DMaterial> = Vector.<A3DMaterial>(object); | ||||
|          var length:int = int(data.length); | ||||
|          LengthCodecHelper.encodeLength(protocolBuffer,length); | ||||
|          for(var i:int = 0; i < length; i++) | ||||
|          { | ||||
|             this.elementCodec.encode(protocolBuffer,data[i]); | ||||
|          } | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
| @@ -0,0 +1,89 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.codec.OptionalCodecDecorator; | ||||
|    import alternativa.protocol.impl.LengthCodecHelper; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import versions.version1.a3d.materials.A3DMaterial; | ||||
|     | ||||
|    public class VectorCodecA3DMaterialLevel2 implements ICodec | ||||
|    { | ||||
|       private var elementCodec:ICodec; | ||||
|        | ||||
|       private var optionalElement:Boolean; | ||||
|        | ||||
|       public function VectorCodecA3DMaterialLevel2(optionalElement:Boolean) | ||||
|       { | ||||
|          super(); | ||||
|          this.optionalElement = optionalElement; | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMaterial,false)); | ||||
|          if(this.optionalElement) | ||||
|          { | ||||
|             this.elementCodec = new OptionalCodecDecorator(this.elementCodec); | ||||
|          } | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          var length2:int = 0; | ||||
|          var items2:Vector.<A3DMaterial> = null; | ||||
|          var i2:int = 0; | ||||
|          var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|          var result:Vector.<Vector.<A3DMaterial>> = new Vector.<Vector.<A3DMaterial>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<A3DMaterial>(length2,true); | ||||
|                result[i1] = items2; | ||||
|                for(i2 = 0; i2 < length2; i2++) | ||||
|                { | ||||
|                   items2[i2] = A3DMaterial(this.elementCodec.decode(protocolBuffer)); | ||||
|                } | ||||
|             } | ||||
|             i1++; | ||||
|          } | ||||
|          return result; | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          var items2:Vector.<A3DMaterial> = null; | ||||
|          var length2:int = 0; | ||||
|          var i2:int = 0; | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var data:Vector.<Vector.<A3DMaterial>> = Vector.<Vector.<A3DMaterial>>(object); | ||||
|          var length1:int = int(data.length); | ||||
|          LengthCodecHelper.encodeLength(protocolBuffer,length1); | ||||
|          for(var i1:int = 0; i1 < length1; i1++) | ||||
|          { | ||||
|             items2 = data[i1]; | ||||
|             if(items2 != null) | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(false); | ||||
|                length2 = int(items2.length); | ||||
|                LengthCodecHelper.encodeLength(protocolBuffer,length2); | ||||
|                for(i2 = 0; i2 < length2; i2++) | ||||
|                { | ||||
|                   this.elementCodec.encode(protocolBuffer,items2[i2]); | ||||
|                } | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(true); | ||||
|             } | ||||
|          } | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
| @@ -0,0 +1,119 @@ | ||||
| package _codec.versions.version1.a3d.materials | ||||
| { | ||||
|    import alternativa.protocol.ICodec; | ||||
|    import alternativa.protocol.IProtocol; | ||||
|    import alternativa.protocol.ProtocolBuffer; | ||||
|    import alternativa.protocol.codec.OptionalCodecDecorator; | ||||
|    import alternativa.protocol.impl.LengthCodecHelper; | ||||
|    import alternativa.protocol.info.TypeCodecInfo; | ||||
|    import versions.version1.a3d.materials.A3DMaterial; | ||||
|     | ||||
|    public class VectorCodecA3DMaterialLevel3 implements ICodec | ||||
|    { | ||||
|       private var elementCodec:ICodec; | ||||
|        | ||||
|       private var optionalElement:Boolean; | ||||
|        | ||||
|       public function VectorCodecA3DMaterialLevel3(optionalElement:Boolean) | ||||
|       { | ||||
|          super(); | ||||
|          this.optionalElement = optionalElement; | ||||
|       } | ||||
|        | ||||
|       public function init(protocol:IProtocol) : void | ||||
|       { | ||||
|          this.elementCodec = protocol.getCodec(new TypeCodecInfo(A3DMaterial,false)); | ||||
|          if(this.optionalElement) | ||||
|          { | ||||
|             this.elementCodec = new OptionalCodecDecorator(this.elementCodec); | ||||
|          } | ||||
|       } | ||||
|        | ||||
|       public function decode(protocolBuffer:ProtocolBuffer) : Object | ||||
|       { | ||||
|          var length2:int = 0; | ||||
|          var items2:Vector.<Vector.<A3DMaterial>> = null; | ||||
|          var i2:int = 0; | ||||
|          var length3:int = 0; | ||||
|          var items3:Vector.<A3DMaterial> = null; | ||||
|          var i3:int = 0; | ||||
|          var length1:int = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|          var result:Vector.<Vector.<Vector.<A3DMaterial>>> = new Vector.<Vector.<Vector.<A3DMaterial>>>(length1,true); | ||||
|          for(var i1:int = 0; i1 < length1; ) | ||||
|          { | ||||
|             if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|             { | ||||
|                length2 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                items2 = new Vector.<Vector.<A3DMaterial>>(length2,true); | ||||
|                result[i1] = items2; | ||||
|                for(i2 = 0; i2 < length2; ) | ||||
|                { | ||||
|                   if(!protocolBuffer.optionalMap.OptionalMap()) | ||||
|                   { | ||||
|                      length3 = LengthCodecHelper.decodeLength(protocolBuffer); | ||||
|                      items3 = new Vector.<A3DMaterial>(length3,true); | ||||
|                      items2[i2] = items3; | ||||
|                      for(i3 = 0; i3 < length3; i3++) | ||||
|                      { | ||||
|                         items3[i3] = A3DMaterial(this.elementCodec.decode(protocolBuffer)); | ||||
|                      } | ||||
|                   } | ||||
|                   i2++; | ||||
|                } | ||||
|             } | ||||
|             i1++; | ||||
|          } | ||||
|          return result; | ||||
|       } | ||||
|        | ||||
|       public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void | ||||
|       { | ||||
|          var items2:Vector.<Vector.<A3DMaterial>> = null; | ||||
|          var length2:int = 0; | ||||
|          var i2:int = 0; | ||||
|          var items3:Vector.<A3DMaterial> = null; | ||||
|          var length3:int = 0; | ||||
|          var i3:int = 0; | ||||
|          if(object == null) | ||||
|          { | ||||
|             throw new Error("Object is null. Use @ProtocolOptional annotation."); | ||||
|          } | ||||
|          var data:Vector.<Vector.<Vector.<A3DMaterial>>> = Vector.<Vector.<Vector.<A3DMaterial>>>(object); | ||||
|          var length1:int = int(data.length); | ||||
|          LengthCodecHelper.encodeLength(protocolBuffer,length1); | ||||
|          for(var i1:int = 0; i1 < length1; i1++) | ||||
|          { | ||||
|             items2 = data[i1]; | ||||
|             if(items2 != null) | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(false); | ||||
|                length2 = int(items2.length); | ||||
|                LengthCodecHelper.encodeLength(protocolBuffer,length2); | ||||
|                for(i2 = 0; i2 < length2; i2++) | ||||
|                { | ||||
|                   items3 = items2[i1]; | ||||
|                   if(items3 != null) | ||||
|                   { | ||||
|                      protocolBuffer.optionalMap.addBit(false); | ||||
|                      length3 = int(items3.length); | ||||
|                      LengthCodecHelper.encodeLength(protocolBuffer,length3); | ||||
|                      for(i3 = 0; i3 < length3; i3++) | ||||
|                      { | ||||
|                         this.elementCodec.encode(protocolBuffer,items3[i3]); | ||||
|                      } | ||||
|                   } | ||||
|                   else | ||||
|                   { | ||||
|                      protocolBuffer.optionalMap.addBit(true); | ||||
|                   } | ||||
|                } | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                protocolBuffer.optionalMap.addBit(true); | ||||
|             } | ||||
|          } | ||||
|       } | ||||
|    } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Pyogenics
					Pyogenics