Lucene.Net.Support.Buffer.Rewind C# (CSharp) Метод

Rewind() публичный Метод

Rewinds this buffer. The position is set to zero and the mark is discarded.

Invoke this method before a sequence of channel-write or Get operations, assuming that the limit has already been set appropriately. For example: out.Write(buf); // Write remaining data buf.Rewind(); // Rewind buffer buf.Get(array); // Copy data into array

public Rewind ( ) : Buffer
Результат Buffer
        public Buffer Rewind()
        {
            position = 0;
            mark = -1;
            return this;
        }