setHeader() public method

public setHeader ( ) : void
return void
Esempio n. 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;
 }
Esempio n. 2
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);
        }