System.Net.Security.NegotiateStream.StartFrameHeader C# (CSharp) Метод

StartFrameHeader() приватный Метод

private StartFrameHeader ( byte buffer, int offset, int count, AsyncProtocolRequest asyncRequest ) : int
buffer byte
offset int
count int
asyncRequest AsyncProtocolRequest
Результат int
        private int StartFrameHeader(byte[] buffer, int offset, int count, AsyncProtocolRequest asyncRequest)
        {
            int readBytes = 0;
            if (asyncRequest != null)
            {
                asyncRequest.SetNextRequest(_ReadHeader, 0, _ReadHeader.Length, s_readCallback);
                _FrameReader.AsyncReadPacket(asyncRequest);
                if (!asyncRequest.MustCompleteSynchronously)
                {
                    return 0;
                }

                readBytes = asyncRequest.Result;
            }
            else
            {
                readBytes = _FrameReader.ReadPacket(_ReadHeader, 0, _ReadHeader.Length);
            }

            return StartFrameBody(readBytes, buffer, offset, count, asyncRequest);
        }