NrbfDecoder.StartsWithPayloadHeader Method
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.
Overloads
StartsWithPayloadHeader(Stream) |
Checks if the given stream starts with the NRBF payload header. |
StartsWithPayloadHeader(ReadOnlySpan<Byte>) |
Checks if the given buffer starts with the NRBF payload header. |
StartsWithPayloadHeader(Stream)
- Source:
- NrbfDecoder.cs
- Source:
- NrbfDecoder.cs
- Source:
- NrbfDecoder.cs
Checks if the given stream starts with the NRBF payload header.
public:
static bool StartsWithPayloadHeader(System::IO::Stream ^ stream);
public static bool StartsWithPayloadHeader(System.IO.Stream stream);
static member StartsWithPayloadHeader : System.IO.Stream -> bool
Public Shared Function StartsWithPayloadHeader (stream As Stream) As Boolean
Parameters
- stream
- Stream
The stream to inspect. The stream must be both readable and seekable.
Returns
true
if the stream starts with the NRBF payload header; otherwise, false
.
Exceptions
stream
is null
.
The stream does not support reading or seeking.
The stream was closed.
An I/O error occurred.
Remarks
When this method returns, stream
is restored to its original position.
Applies to
StartsWithPayloadHeader(ReadOnlySpan<Byte>)
- Source:
- NrbfDecoder.cs
- Source:
- NrbfDecoder.cs
- Source:
- NrbfDecoder.cs
Checks if the given buffer starts with the NRBF payload header.
public:
static bool StartsWithPayloadHeader(ReadOnlySpan<System::Byte> bytes);
public static bool StartsWithPayloadHeader(ReadOnlySpan<byte> bytes);
static member StartsWithPayloadHeader : ReadOnlySpan<byte> -> bool
Public Shared Function StartsWithPayloadHeader (bytes As ReadOnlySpan(Of Byte)) As Boolean
Parameters
- bytes
- ReadOnlySpan<Byte>
The buffer to inspect.
Returns
true
if the buffer starts with the NRBF payload header; otherwise, false
.