UnmanagedMemoryStream Constructor (SafeBuffer^, Int64, Int64, FileAccess)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 long offset,
	long long length,
	FileAccess access
)

Parameters

buffer
Type: System.Runtime.InteropServices::SafeBuffer^

The buffer to contain the unmanaged memory stream.

offset
Type: System::Int64

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

length
Type: System::Int64

The length of the unmanaged memory stream.

access
Type: System.IO::FileAccess

The mode of file access to the unmanaged memory stream.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.0
Return to top
Show: