Share via


NrbfDecoder.StartsWithPayloadHeader Method

Definition

Overloads

StartsWithPayloadHeader(Stream)

Checks if given stream starts with NRBF payload header.

StartsWithPayloadHeader(ReadOnlySpan<Byte>)

Checks if given buffer starts with NRBF payload header.

StartsWithPayloadHeader(Stream)

Source:
NrbfDecoder.cs

Checks if given stream starts with 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 it starts with 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 will be restored to its original position.

Applies to

StartsWithPayloadHeader(ReadOnlySpan<Byte>)

Source:
NrbfDecoder.cs

Checks if given buffer starts with 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 it starts with NRBF payload header; otherwise, false.

Applies to