CSharpRTMP.Core.Protocols.Rtmp.BaseRTMPProtocol.GetDigestOffset1 C# (CSharp) Method

GetDigestOffset1() public method

public GetDigestOffset1 ( BufferWithOffset pBuffer ) : uint
pBuffer CSharpRTMP.Common.BufferWithOffset
return uint
        public uint GetDigestOffset1(BufferWithOffset pBuffer)
        {
            var offset = (uint)(pBuffer[772] + pBuffer[773] + pBuffer[774] + pBuffer[775]);
            offset = offset % 728;
            offset = offset + 776;
            if (offset + 32 >= 1536)
            {
                ASSERT("Invalid digest offset");
            }
            return offset;
        }