BplusDotNet.BufferFile.InitializeBufferFileInStream C# (CSharp) Method

InitializeBufferFileInStream() public static method

public static InitializeBufferFileInStream ( System fromfile, int buffersize ) : BufferFile
fromfile System
buffersize int
return BufferFile
        public static BufferFile InitializeBufferFileInStream(System.IO.Stream fromfile, int buffersize)
        {
            return InitializeBufferFileInStream(fromfile, buffersize, (long)0);
        }

Same methods

BufferFile::InitializeBufferFileInStream ( System fromfile, int buffersize, long StartSeek ) : BufferFile

Usage Example

Example #1
0
        public static LinkedFile InitializeLinkedFileInStream(System.IO.Stream fromfile, int buffersize, long StartSeek)
        {
            LinkedFile result = new LinkedFile(buffersize, StartSeek);

            result.fromfile = fromfile;
            result.setHeader();
            // buffersize should be increased by overhead...
            result.buffers = BufferFile.InitializeBufferFileInStream(fromfile, buffersize + BUFFEROVERHEAD, StartSeek + result.headersize);
            return(result);
        }