Exemplo n.º 1
0
 internal uint NextUInt()
 {
     if (cachedIntSource)
     {
         cachedIntSource = false;
         return(NumberFactory.ExtractLow(intSource));
     }
     else
     {
         intSource       = NextULong();
         cachedIntSource = true;
         return(NumberFactory.ExtractHigh(intSource));
     }
 }
Exemplo n.º 2
0
 internal ushort NextUShort()
 {
     if (cachedShortSource)
     {
         cachedShortSource = false;
         return(NumberFactory.ExtractLow(shortSource));
     }
     else
     {
         shortSource       = NextUInt();
         cachedShortSource = true;
         return(NumberFactory.ExtractHigh(shortSource));
     }
 }