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())); }
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; } }