Class DecodeResultExtensions
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
Extension methods for the MessagePackPrimitives.DecodeResult enum.
public static class DecodeResultExtensions
- Inheritance
-
DecodeResultExtensions
- Inherited Members
Methods
NeedsMoreBytes(DecodeResult)
Processes a given MessagePackPrimitives.DecodeResult value and returns a boolean indicating whether more bytes are needed.
public static bool NeedsMoreBytes(this MessagePackPrimitives.DecodeResult result)
Parameters
result
MessagePackPrimitives.DecodeResultThe MessagePackPrimitives.DecodeResult value.
Returns
- bool
true if the value is InsufficientBuffer; false if the value is Success.
Exceptions
- EndOfStreamException
Thrown if the value is EmptyBuffer.
- MessagePackSerializationException
Thrown if the value is TokenMismatch.