OperationStatus OperationStatus OperationStatus OperationStatus Enum


Defines the values that can be returned from span-based operations that support processing of input contained in multiple discontiguous buffers.

public enum class OperationStatus
public enum OperationStatus
type OperationStatus = 
Public Enum OperationStatus


DestinationTooSmall DestinationTooSmall DestinationTooSmall DestinationTooSmall 1

The input is partially processed, up to what could fit into the destination buffer. The caller can enlarge the destination buffer, slice the buffers appropriately, and retry.

Done Done Done Done 0

The entire input buffer has been processed and the operation is complete.

InvalidData InvalidData InvalidData InvalidData 3

The input contained invalid bytes which could not be processed. If the input is partially processed, the destination contains the partial result. This guarantees that no additional data appended to the input will make the invalid sequence valid.

NeedMoreData NeedMoreData NeedMoreData NeedMoreData 2

The input is partially processed, up to the last valid chunk of the input that could be consumed. The caller can stitch the remaining unprocessed input with more data, slice the buffers appropriately, and retry.

Applies to