CSharpRTMP.Core.Protocols.Rtmfp.RtmfpUtils.ReadCRC C# (CSharp) Method

ReadCRC() public static method

public static ReadCRC ( N2HBinaryReader packet ) : bool
packet CSharpRTMP.Common.N2HBinaryReader
return bool
        public static bool ReadCRC(N2HBinaryReader packet)
        {
	        // Check the first 2 CRC bytes 
	        packet.BaseStream.Position = 4;
            UInt16 sum = packet.ReadUInt16();
	        return (sum == CheckSum(packet.BaseStream));
        }
        public static void EncodeAndPack(AESEngine aesEncrypt, H2NBinaryWriter writer, uint farId,int ignore = 0)