UnmanagedMemoryStream.PositionPointer Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Gets or sets a byte pointer to a stream based on the current position in the stream.
public:
property System::Byte* PositionPointer { System::Byte* get(); void set(System::Byte* value); };
[System.CLSCompliant(false)]
public byte* PositionPointer { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
[System.CLSCompliant(false)]
public byte* PositionPointer { get; set; }
public byte* PositionPointer { get; set; }
[<System.CLSCompliant(false)>]
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.PositionPointer : nativeptr<byte> with get, set
[<System.CLSCompliant(false)>]
member this.PositionPointer : nativeptr<byte> with get, set
member this.PositionPointer : nativeptr<byte> with get, set
Property Value
A byte pointer.
- Attributes
Exceptions
The current position is larger than the capacity of the stream.
The position is being set is not a valid position in the current stream.
The pointer is being set to a lower value than the starting position of the stream.
The stream was initialized for use with a SafeBuffer. The PositionPointer property is valid only for streams that are initialized with a Byte pointer.
Remarks
To return a pointer to the entire stream, set the Position property to zero, and then call this property.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback을 참조하세요.
출시 예정: 2024년 내내 콘텐츠 피드백 메커니즘인 GitHub 문제를 단계적으로 폐지하고 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은다음에 대한 사용자 의견 제출 및 보기