CborReader.Reset 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
| Name | Description |
|---|---|
| Reset(ReadOnlyMemory<Byte>) |
Resets the CborReader instance over the specified |
| Reset(ReadOnlyMemory<Byte>, Boolean) |
Resets the CborReader instance over the specified |
Reset(ReadOnlyMemory<Byte>)
- Source:
- CborReader.cs
- Source:
- CborReader.cs
- Source:
- CborReader.cs
- Source:
- CborReader.cs
Resets the CborReader instance over the specified data with unchanged configuration.
ConformanceMode and AllowMultipleRootLevelValues are unchanged.
public:
void Reset(ReadOnlyMemory<System::Byte> data);
public void Reset(ReadOnlyMemory<byte> data);
member this.Reset : ReadOnlyMemory<byte> -> unit
Public Sub Reset (data As ReadOnlyMemory(Of Byte))
Parameters
- data
- ReadOnlyMemory<Byte>
The CBOR-encoded data to read.
Remarks
data is treated as the final block: subsequent calls to SlideData(ReadOnlyMemory<Byte>, Boolean) throw. Use Reset(ReadOnlyMemory<Byte>, Boolean) to start reading a new document incrementally.
Applies to
Reset(ReadOnlyMemory<Byte>, Boolean)
- Source:
- CborReader.cs
Resets the CborReader instance over the specified data with unchanged configuration.
ConformanceMode and AllowMultipleRootLevelValues are unchanged.
public:
void Reset(ReadOnlyMemory<System::Byte> data, bool isFinalBlock);
public void Reset(ReadOnlyMemory<byte> data, bool isFinalBlock);
member this.Reset : ReadOnlyMemory<byte> * bool -> unit
Public Sub Reset (data As ReadOnlyMemory(Of Byte), isFinalBlock As Boolean)
Parameters
- data
- ReadOnlyMemory<Byte>
The CBOR-encoded data to read.
- isFinalBlock
- Boolean
true to indicate that data contains the complete remainder of the document(s) to read;
false if more data may be supplied using SlideData(ReadOnlyMemory<Byte>, Boolean).
Exceptions
isFinalBlock is false and the conformance mode is not Lax.