public override void SetLength(long value) { TotalSize = (int)value; if (CurrentPosition > TotalSize) CurrentPosition = TotalSize; }