Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UnmanagedMemoryStream Constructor (SafeBuffer, Int64, Int64, FileAccess)

UnmanagedMemoryStream Constructor (SafeBuffer, Int64, Int64, FileAccess)

.NET Framework 4.6 and 4.5

Initializes a new instance of the UnmanagedMemoryStream class in a safe buffer with a specified offset, length, and file access.

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

public UnmanagedMemoryStream(
	SafeBuffer buffer,
	long offset,
	long length,
	FileAccess access


Type: System.Runtime.InteropServices.SafeBuffer

The buffer to contain the unmanaged memory stream.

Type: System.Int64

The byte position in the buffer at which to start the unmanaged memory stream.

Type: System.Int64

The length of the unmanaged memory stream.

Type: System.IO.FileAccess

The mode of file access to the unmanaged memory stream.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft