MemoryStream.InternalGetOriginAndLength method

Gets the internal values of origin and length of the memory stream.

internal void InternalGetOriginAndLength(out int origin, out int length)

Parameters

  • origin Int32
    When this method returns, the offset of the byte array specified when creating a new MemoryStream object. Contains 0 if the byte array was created by MemoryStream.

  • length Int32
    When this method returns, the number of bytes within the memory stream.

Remarks

Warning

The MemoryStream.InternalGetOriginAndLength method is internal and is not meant to be used directly in your code.

Microsoft does not support the use of this method in a production application under any circumstance.

Requirements

Namespace: System.IO

Assembly: mscorlib.dll (in mscorlib.dll)

.NET Framework versions: Available since 2.0.