CSJ2K.j2k.util.ISRandomAccessIO.ISRandomAccessIO C# (CSharp) Метод

ISRandomAccessIO() публичный Метод

Creates a new RandomAccessIO wrapper for the given InputStream 'is'. The internal cache buffer will have size 'size' and will increment by 'inc' each time it is needed. The maximum buffer size is limited to 'maxsize'.
public ISRandomAccessIO ( System is_Renamed, int size, int inc, int maxsize ) : System
is_Renamed System
size int The initial size for the cache buffer, in bytes. /// ///
inc int The size increment for the cache buffer, in bytes. /// ///
maxsize int The maximum size for the cache buffer, in bytes. /// ///
Результат System
        public ISRandomAccessIO(System.IO.Stream is_Renamed, int size, int inc, int maxsize)
        {
            if (size < 0 || inc <= 0 || maxsize <= 0 || is_Renamed == null)
            {
                throw new System.ArgumentException();
            }
            this.is_Renamed = is_Renamed;
            // Increase size by one to count in EOF
            if (size < System.Int32.MaxValue)
                size++;
            buf = new byte[size];
            this.inc = inc;
            // The maximum size is one byte more, to allow reading the EOF.
            if (maxsize < System.Int32.MaxValue)
                maxsize++;
            this.maxsize = maxsize;
            pos = 0;
            len = 0;
            complete = false;
        }

Same methods

ISRandomAccessIO::ISRandomAccessIO ( System is_Renamed ) : System