AnalyzeRawProtobuf.Program.GetTypeAndFieldNo C# (CSharp) Method

GetTypeAndFieldNo() private method

The get type and field no.
private GetTypeAndFieldNo ( int &type, int &fieldNo ) : int
type int /// The type. ///
fieldNo int /// The field no. ///
return int
        private int GetTypeAndFieldNo(out int type, out int fieldNo)
        {
            uint length;
            var ixl = GetVarint(out length);

            type = (int)(length & 0x07);
            fieldNo = (int)(length >> 3);
            return ixl;
        }