PeerCastStation.FLV.FLVFileParser.FLVTag.FLVTag C# (CSharp) Method

FLVTag() public method

public FLVTag ( FLVFileParser owner, byte binary ) : System
owner FLVFileParser
binary byte
return System
			public FLVTag(FLVFileParser owner, byte[] binary)
			{
				this.owner     = owner;
				this.Header    = binary;
				this.Filter    = (binary[0] & 0x20)!=0;
				this.Type      = (TagType)(binary[0] & 0x1F);
				this.DataSize  =                   (binary[1]<<16) | (binary[2]<<8) | (binary[3]);
				this.Timestamp = (binary[7]<<24) | (binary[4]<<16) | (binary[5]<<8) | (binary[6]);
				this.StreamID  =                   (binary[8]<<16) | (binary[9]<<8) | (binary[10]);
				this.Body      = null;
				this.Footer    = null;
			}