CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums


Initializes a new non-resizable instance of the MemoryStream class based on the specified region (index) of a byte array.

Namespace: ?System.IO
Assembly: ?mscorlib (in mscorlib.dll)

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	buffer As Byte(), _
	index As Integer, _
	count As Integer _
)
C#
public MemoryStream(
	byte[] buffer,
	int index,
	int count
)
Visual C++
public:
MemoryStream(
	array<unsigned char>^ buffer, 
	int index, 
	int count
)
JavaScript
System.IO.MemoryStream = function(buffer, index, count);

Parameters

buffer
Type: array< System..::.Byte >[]()[]
The array of unsigned bytes from which to create this stream.
index
Type: System..::.Int32
The index into buffer at which the stream begins.
count
Type: System..::.Int32
The length of the stream in bytes.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionbuffer is null.
System..::.ArgumentOutOfRangeExceptionindex or count is less than zero.
System..::.ArgumentExceptionThe sum of index and count is greater than the length of buffer.

See Also



Free Download:
   
  Privacy | Contact Us
All Times Are GMT