GetString() private méthode

private GetString ( ) : string
Résultat string
            internal void Read(ZreMsgOriginal m)
            {
                int listSize;
                int hashSize;
                int chunkSize;

                byte[] guidBytes;
                byte   version;

                // Version
                version = m.GetNumber1();
                if (version != 2)
                {
                    throw new MessageException("Version is invalid");
                }

                // Sequence
                Sequence = m.GetNumber2();

                // Group
                Group = m.GetString();

                // Status
                Status = m.GetNumber1();
            }
            internal void Read(ZreMsgOriginal m)
            {
                int listSize;
                int hashSize;
                int chunkSize;

                byte[] guidBytes;
                byte   version;

                // Version
                version = m.GetNumber1();
                if (version != 2)
                {
                    throw new MessageException("Version is invalid");
                }

                // Sequence
                Sequence = m.GetNumber2();

                // Endpoint
                Endpoint = m.GetString();

                // Groups
                listSize = (int)m.GetNumber4();
                Groups   = new List <string>(listSize);
                while (listSize-- > 0)
                {
                    string s = m.GetLongString();
                    Groups.Add(s);
                }

                // Status
                Status = m.GetNumber1();

                // Name
                Name = m.GetString();

                // Headers
                hashSize = (int)m.GetNumber4();
                Headers  = new Dictionary <string, string>();
                while (hashSize-- > 0)
                {
                    string key   = m.GetString();
                    string value = m.GetLongString();
                    Headers.Add(key, value);
                }
            }
Exemple #3
0
			internal void Read(ZreMsgOriginal m)
			{
				int listSize;
				int hashSize;
				int chunkSize;
				byte[] guidBytes;
				byte version;

				// Version
				version = m.GetNumber1();                          
				if (version != 2) 
				{
					throw new MessageException("Version is invalid");						
				}													

				// Sequence
				Sequence = m.GetNumber2();

				// Group
				Group = m.GetString();

				// Status
				Status = m.GetNumber1();

			}
Exemple #4
0
			internal void Read(ZreMsgOriginal m)
			{
				int listSize;
				int hashSize;
				int chunkSize;
				byte[] guidBytes;
				byte version;

				// Version
				version = m.GetNumber1();                          
				if (version != 2) 
				{
					throw new MessageException("Version is invalid");						
				}													

				// Sequence
				Sequence = m.GetNumber2();

				// Endpoint
				Endpoint = m.GetString();

				// Groups
				listSize = (int)m.GetNumber4();                
				Groups = new List<string>(listSize);                 
				while (listSize-- > 0) 
				{
					string s = m.GetLongString();
					Groups.Add(s);                    
				}												

				// Status
				Status = m.GetNumber1();

				// Name
				Name = m.GetString();

				// Headers
				hashSize = (int)m.GetNumber4();                
				Headers = new Dictionary<string, string>();                
				while (hashSize-- > 0)  
				{
					string key = m.GetString();
					string value = m.GetLongString();
					Headers.Add(key, value);
				}						

			}