Skip to content

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.

public static void CopyTo(this IReadOnlyList<Byte> bytes, Span<Byte> destination, int start);

View source

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.

public static void CopyTo(this IReadOnlyList<Byte> bytes, Span<Byte> destination);

View source

Parameters

Name Type Description
bytes IReadOnlyList<Byte>
destination Span<Byte> The destination span.