Xceed Real-Time Zip for .NET Documentation
SetLength Method (ChecksumStream)


Xceed.Compression.Formats Assembly > Xceed.Compression.Formats Namespace > ChecksumStream Class : SetLength Method
The desired length of the current stream in bytes.
Sets the length of the current stream.
Syntax
'Declaration
 
Public Overrides Sub SetLength( _

   ByVal value As Long _

) 
'Usage
 
Dim instance As ChecksumStream

Dim value As Long

 

instance.SetLength(value)
public override void SetLength( 

   long value

)

Parameters

value
The desired length of the current stream in bytes.
Remarks

If the specified value is less than the current length of the stream, the stream is truncated. If the specified value is larger than the current length of the stream, the stream is expanded. If the stream is expanded, the contents of the stream between the old and the new length are not defined.

A stream must support both writing and seeking for SetLength to work.

Use the CanWrite property to determine whether the current instance supports writing, and the CanSeek property to determine whether seeking is supported.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ChecksumStream Class
ChecksumStream Members
Base Implementation in SetLength