Share via


NrbfDecoder Class

Definition

Provides stateless methods for decoding .NET Remoting Binary Format (NRBF) encoded data.

public ref class NrbfDecoder abstract sealed
public static class NrbfDecoder
type NrbfDecoder = class
Public Class NrbfDecoder
Inheritance
NrbfDecoder

Remarks

NrbfDecoder is an implementation of an NRBF reader, but its behaviors don't strictly follow BinaryFormatter's implementation. Thus the output of NrbfDecoder shouldn't be used to determine whether a call to BinaryFormatter would be safe.

Methods

Decode(Stream, IReadOnlyDictionary<SerializationRecordId,SerializationRecord>, PayloadOptions, Boolean)

Decodes the provided NRBF payload.

Decode(Stream, PayloadOptions, Boolean)

Decodes the provided NRBF payload.

DecodeClassRecord(Stream, PayloadOptions, Boolean)

Decodes the provided NRBF payload that is expected to contain an instance of any class (or struct) that is not an Array or a primitive type.

StartsWithPayloadHeader(ReadOnlySpan<Byte>)

Checks if the given buffer starts with the NRBF payload header.

StartsWithPayloadHeader(Stream)

Checks if the given stream starts with the NRBF payload header.

Applies to