Skip to content

ByteIReadOnlyListExtensions.CopyTo Method ​

Overloads ​

NameDescription
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);

View source

Parameters ​

NameTypeDescription
bytesIReadOnlyList<Byte>
destinationSpan<Byte>The destination span.
startInt32The 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);

View source

Parameters ​

NameTypeDescription
bytesIReadOnlyList<Byte>
destinationSpan<Byte>The destination span.