Method FromOrderedBytes
FromOrderedBytes(ReadOnlySpan<byte>)
Creates a file ID from the 16-byte ordered encoding written by ToOrderedBytes().
Declaration
public static FileId FromOrderedBytes(ReadOnlySpan<byte> source)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | source | The 16 bytes of the ordered encoding. |
Returns
| Type | Description |
|---|---|
| FileId |
Remarks
The encoding is not RFC 9562 byte order; see ToOrderedBytes(). To create a file ID from bytes in RFC 9562 byte order, convert them
with Guid(ReadOnlySpan<byte>, bool) with bigEndian set to true and pass the GUID to
Create(Guid).
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|