Example #1
0
 /// <summary>
 ///     Fills the stream with data representing a binary file.
 /// </summary>
 static public void CreateBinaryStream(CvsStream cvsStream)
 {
     // Put a binary file onto the stream
     for (int n = 0; n < GetBinaryLen(BINARY_BLOCKS); n++)
     {
         cvsStream.WriteByte(GenerateBinaryByte(n));
     }
 }
Example #2
0
        /// <summary>
        ///     Fills the stream with data representing a text file.
        /// </summary>
        static public void CreateTextStream(CvsStream cvsStream)
        {
            int linefeedChars = 1;    // we are emulating a file coming from cvs

            // Put a text file onto the stream
            for (int n = 0; n < GetTextLen(TEXT_BLOCKS, linefeedChars); n++)
            {
                cvsStream.WriteByte(GenerateTextByte(n, linefeedChars));
            }
        }