MoreDataAvailable() статический приватный Метод

static private MoreDataAvailable ( ) : InvalidProtocolBufferException
Результат InvalidProtocolBufferException
Пример #1
0
 /// <summary>
 /// Verifies that the last call to ReadTag() returned tag 0 - in other words,
 /// we've reached the end of the stream when we expected to.
 /// </summary>
 /// <exception cref="InvalidProtocolBufferException">The
 /// tag read was not the one specified</exception>
 internal void CheckReadEndOfStreamTag()
 {
     if (lastTag != 0)
     {
         throw InvalidProtocolBufferException.MoreDataAvailable();
     }
 }
 /// <summary>
 /// Verifies that the last call to ReadTag() returned tag 0 - in other words,
 /// we've reached the end of the stream when we expected to.
 /// </summary>
 /// <exception cref="InvalidProtocolBufferException">The
 /// tag read was not the one specified</exception>
 public static void CheckReadEndOfStreamTag(ref ParserInternalState state)
 {
     if (state.lastTag != 0)
     {
         throw InvalidProtocolBufferException.MoreDataAvailable();
     }
 }