Fan.Sys.SysInStream.make C# (CSharp) Method

make() public static method

public static make ( Stream input, Long bufSize ) : SysInStream
input Stream
bufSize Long
return SysInStream
        public static SysInStream make(Stream input, Long bufSize)
        {
            if (bufSize == null || bufSize.longValue() == 0)
            return new SysInStream(input);
              else
            return new SysInStream(new BufferedStream(input, bufSize.intValue()));
        }

Usage Example

Example #1
0
 public override InStream @in(Long bufSize)
 {
     try
     {
         System.IO.Stream stream = (m_file as FileInfo).OpenRead();
         return(SysInStream.make(stream, bufSize));
     }
     catch (System.IO.IOException e)
     {
         throw IOErr.make(e).val;
     }
 }
All Usage Examples Of Fan.Sys.SysInStream::make