public void WriteZeroes(int count) { this.ThrowIfDisposed(); if (count <= 0) { throw new ArgumentOutOfRangeException("count", count, CommonStrings.CountMustBePositive); } for (int i = 0; i < count; i++) { this.stream.WriteByte(0); } }