Skip to content

IOFileComponent.CopyTo Method ​

Overloads ​

NameDescription
CopyTo(Span<Byte>)Copies the data to the specified memory span.
CopyTo(Span<Byte>, Int32)Copies the data to the specified memory span at the given start position.

CopyTo(Span<Byte>) ​

Copies the data to the specified memory span.

c#
public void CopyTo(Span<Byte> memory);

View source

Parameters ​

NameTypeDescription
memorySpan<Byte>The destination span.

CopyTo(Span<Byte>, Int32) ​

Copies the data to the specified memory span at the given start position.

c#
public void CopyTo(Span<Byte> memory, int start);

View source

Parameters ​

NameTypeDescription
memorySpan<Byte>The destination span.
startInt32The start position in the destination span.