Beispiel #1
0
        /// <summary>
        /// Reads characers byte by byte until EOF is reached.
        /// </summary>
        private void LoadCharacters()
        {
            const int defaultbuffersize = 4096;

            byte[] anotherhappybuffer = default(byte[]);
            while (true)
            {
                anotherhappybuffer = Reader.ReadBuffer(defaultbuffersize);
                LoadBytesToOccurances(anotherhappybuffer);
                if (anotherhappybuffer.Length < defaultbuffersize)
                {
                    break;
                }
            }
            anotherhappybuffer = null;
        }
Beispiel #2
0
 private void GetBuffer()
 {
     Buffer = null;
     Buffer = Reader.ReadBuffer(DefaultBufferSize);
 }