BplusDotNet.BufferFile.SetupFromExistingStream C# (CSharp) Метод

SetupFromExistingStream() публичный статический Метод

public static SetupFromExistingStream ( System fromfile ) : BufferFile
fromfile System
Результат BufferFile
        public static BufferFile SetupFromExistingStream(System.IO.Stream fromfile)
        {
            return SetupFromExistingStream(fromfile, (long)0);
        }

Same methods

BufferFile::SetupFromExistingStream ( System fromfile, long StartSeek ) : BufferFile

Usage Example

Пример #1
0
        public static LinkedFile SetupFromExistingStream(System.IO.Stream fromfile, long StartSeek)
        {
            LinkedFile result = new LinkedFile(100, StartSeek);             // dummy buffer size for now

            result.fromfile = fromfile;
            result.readHeader();
            result.buffers = BufferFile.SetupFromExistingStream(fromfile, StartSeek + result.headersize);
            return(result);
        }