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