Method Clear Clear() Sets the buffer length to zero. Declaration public void Clear() Remarks The capacity of the buffer remains unchanged. Buffer memory is not overwritten. Examples buffer.Clear();