ByteIReadOnlyListExtensions.CopyTo Method ​
Overloads ​
| Name | Description |
|---|---|
CopyTo(IReadOnlyList<Byte>, Span<Byte>, Int32) | Copies the contents of a read-only list to a span, starting at the specified offset in the destination. |
CopyTo(IReadOnlyList<Byte>, Span<Byte>) | Copies the contents of a read-only list to a span. |
CopyTo(IReadOnlyList<Byte>, Span<Byte>, Int32) ​
Copies the contents of a read-only list to a span, starting at the specified offset in the destination.
c#
public static void CopyTo(this IReadOnlyList<Byte> bytes, Span<Byte> destination, int start);Parameters ​
| Name | Type | Description |
|---|---|---|
bytes | IReadOnlyList<Byte> | |
destination | Span<Byte> | The destination span. |
start | Int32 | The zero-based index in destination to start copying to. |
CopyTo(IReadOnlyList<Byte>, Span<Byte>) ​
Copies the contents of a read-only list to a span.
c#
public static void CopyTo(this IReadOnlyList<Byte> bytes, Span<Byte> destination);Parameters ​
| Name | Type | Description |
|---|---|---|
bytes | IReadOnlyList<Byte> | |
destination | Span<Byte> | The destination span. |