Fan.Sys.InStream.r C# (CSharp) Méthode

r() public méthode

Read a byte using a Java primitive int. Most reads route to this method for efficient mapping to a java.io.InputStream. If we aren't overriding this method, then route back to read() for the subclass to handle.
public r ( ) : int
Résultat int
        public virtual int r()
        {
            Long n = read();
              if (n == null) return -1;
              return n.intValue();
        }

Usage Example

Exemple #1
0
            public override int decode(InStream @in)
            {
                int c1 = @in.r();
                int c2 = @in.r();

                if ((c1 | c2) < 0)
                {
                    return(-1);
                }
                return(c1 | (c2 << 8));
            }
All Usage Examples Of Fan.Sys.InStream::r