Method SetFromBytes
| Edit this page View SourceSetFromBytes(ReadOnlySpan<byte>)
Populates the buffer from a byte span. Length must exactly match SizeInBytes.
Declaration
public void SetFromBytes(ReadOnlySpan<byte> source)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | source | Source byte span. |
Implements
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if span length does not match. |