Export (0) Print
Expand All

WindowsRuntimeBufferExtensions.CopyTo Method

.NET Framework 4.5

Copies bytes from a source byte array to a target IBuffer interface, from a source IBuffer to a target byte array, or from a source IBuffer to a target IBuffer.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member CopyTo(IBuffer, Byte[]) Copies all bytes from the source buffer (Windows.Storage.Streams.IBuffer) to the destination array, starting at offset 0 (zero) in both.
Public method Static member CopyTo(IBuffer, IBuffer) Copies all bytes from the source buffer (Windows.Storage.Streams.IBuffer) to the destination buffer, starting at offset 0 (zero) in both.
Public method Static member CopyTo(Byte[], IBuffer) Copies all bytes from the source array to the destination buffer (Windows.Storage.Streams.IBuffer), starting at offset 0 (zero) in both. The method does not update the length of the destination buffer.
Public method Static member CopyTo(IBuffer, UInt32, Byte[], Int32, Int32) Copies bytes from the source buffer (Windows.Storage.Streams.IBuffer) to the destination array, specifying the starting index in the source buffer, the starting index in the destination array, and the number of bytes to copy.
Public method Static member CopyTo(IBuffer, UInt32, IBuffer, UInt32, UInt32) Copies bytes from the source buffer (Windows.Storage.Streams.IBuffer) to the destination buffer, specifying the starting index in the source, the starting index in the destination, and the number of bytes to copy.
Public method Static member CopyTo(Byte[], Int32, IBuffer, UInt32, Int32) Copies bytes from the source array to the destination buffer (Windows.Storage.Streams.IBuffer), specifying the starting index in the source array, the starting index in the destination buffer, and the number of bytes to copy. The method does not update the Length property of the destination buffer.
Top
Show:
© 2014 Microsoft