WindowsRuntimeBufferExtensions.CopyTo メソッド

定義

オーバーロード

CopyTo(Byte[], IBuffer)

コピー元の配列のすべてのバイトを、コピー先のバッファー (Windows.Storage.Streams.IBuffer) にコピーします。コピー操作は、両方のオフセット 0 (ゼロ) から開始されます。 このメソッドでコピー先のバッファーの長さが更新されることはありません。

CopyTo(IBuffer, Byte[])

コピー元のバッファー (Windows.Storage.Streams.IBuffer) のすべてのバイトを、コピー先の配列にコピーします。コピー操作は、両方のオフセット 0 (ゼロ) から開始されます。

CopyTo(IBuffer, IBuffer)

コピー元のバッファー (Windows.Storage.Streams.IBuffer) のすべてのバイトを、コピー先のバッファーにコピーします。コピー操作は、両方のオフセット 0 (ゼロ) から開始されます。

CopyTo(Byte[], Int32, IBuffer, UInt32, Int32)

コピー元の配列内の開始インデックス、コピー先のバッファー内の開始インデックス、およびコピーするバイト数を指定して、コピー元の配列からコピー先のバッファー (Windows.Storage.Streams.IBuffer) にバイトをコピーします。 このメソッドは、変換先バッファーの Length プロパティを更新しません。

CopyTo(IBuffer, UInt32, Byte[], Int32, Int32)

コピー元のバッファー内の開始インデックス、コピー先の配列内の開始インデックス、およびコピーするバイト数を指定して、コピー元のバッファー (Windows.Storage.Streams.IBuffer) からコピー先の配列にバイトをコピーします。

CopyTo(IBuffer, UInt32, IBuffer, UInt32, UInt32)

コピー元の開始インデックス、コピー先の開始インデックス、およびコピーするバイト数を指定して、コピー元のバッファー (Windows.Storage.Streams.IBuffer) からコピー先のバッファーにバイトをコピーします。

CopyTo(Byte[], IBuffer)

重要

この API は CLS 準拠ではありません。

コピー元の配列のすべてのバイトを、コピー先のバッファー (Windows.Storage.Streams.IBuffer) にコピーします。コピー操作は、両方のオフセット 0 (ゼロ) から開始されます。 このメソッドでコピー先のバッファーの長さが更新されることはありません。

public:
[System::Runtime::CompilerServices::Extension]
 static void CopyTo(cli::array <System::Byte> ^ source, Windows::Storage::Streams::IBuffer ^ destination);
[System.CLSCompliant(false)]
public static void CopyTo (this byte[] source, Windows.Storage.Streams.IBuffer destination);
[<System.CLSCompliant(false)>]
static member CopyTo : byte[] * Windows.Storage.Streams.IBuffer -> unit
<Extension()>
Public Sub CopyTo (source As Byte(), destination As IBuffer)

パラメーター

source
Byte[]

データのコピー元となる配列。

destination
IBuffer

データのコピー先となるバッファー。

属性

例外

source または destination が null です。

source のサイズが destination の容量を超えています。

適用対象

CopyTo(IBuffer, Byte[])

重要

この API は CLS 準拠ではありません。

コピー元のバッファー (Windows.Storage.Streams.IBuffer) のすべてのバイトを、コピー先の配列にコピーします。コピー操作は、両方のオフセット 0 (ゼロ) から開始されます。

public:
[System::Runtime::CompilerServices::Extension]
 static void CopyTo(Windows::Storage::Streams::IBuffer ^ source, cli::array <System::Byte> ^ destination);
[System.CLSCompliant(false)]
public static void CopyTo (this Windows.Storage.Streams.IBuffer source, byte[] destination);
[<System.CLSCompliant(false)>]
static member CopyTo : Windows.Storage.Streams.IBuffer * byte[] -> unit
<Extension()>
Public Sub CopyTo (source As IBuffer, destination As Byte())

パラメーター

source
IBuffer

データのコピー元となるバッファー。

destination
Byte[]

データのコピー先の配列。

属性

例外

source または destination が null です。

source のサイズが destination のサイズを超えています。

適用対象

CopyTo(IBuffer, IBuffer)

重要

この API は CLS 準拠ではありません。

コピー元のバッファー (Windows.Storage.Streams.IBuffer) のすべてのバイトを、コピー先のバッファーにコピーします。コピー操作は、両方のオフセット 0 (ゼロ) から開始されます。

public:
[System::Runtime::CompilerServices::Extension]
 static void CopyTo(Windows::Storage::Streams::IBuffer ^ source, Windows::Storage::Streams::IBuffer ^ destination);
[System.CLSCompliant(false)]
public static void CopyTo (this Windows.Storage.Streams.IBuffer source, Windows.Storage.Streams.IBuffer destination);
[<System.CLSCompliant(false)>]
static member CopyTo : Windows.Storage.Streams.IBuffer * Windows.Storage.Streams.IBuffer -> unit
<Extension()>
Public Sub CopyTo (source As IBuffer, destination As IBuffer)

パラメーター

source
IBuffer

ソース バッファー。

destination
IBuffer

コピー先のバッファー。

属性

例外

source または destination が null です。

source のサイズが destination の容量を超えています。

適用対象

CopyTo(Byte[], Int32, IBuffer, UInt32, Int32)

重要

この API は CLS 準拠ではありません。

コピー元の配列内の開始インデックス、コピー先のバッファー内の開始インデックス、およびコピーするバイト数を指定して、コピー元の配列からコピー先のバッファー (Windows.Storage.Streams.IBuffer) にバイトをコピーします。 このメソッドは、変換先バッファーの Length プロパティを更新しません。

public:
[System::Runtime::CompilerServices::Extension]
 static void CopyTo(cli::array <System::Byte> ^ source, int sourceIndex, Windows::Storage::Streams::IBuffer ^ destination, System::UInt32 destinationIndex, int count);
[System.CLSCompliant(false)]
public static void CopyTo (this byte[] source, int sourceIndex, Windows.Storage.Streams.IBuffer destination, uint destinationIndex, int count);
[<System.CLSCompliant(false)>]
static member CopyTo : byte[] * int * Windows.Storage.Streams.IBuffer * uint32 * int -> unit
<Extension()>
Public Sub CopyTo (source As Byte(), sourceIndex As Integer, destination As IBuffer, destinationIndex As UInteger, count As Integer)

パラメーター

source
Byte[]

データのコピー元となる配列。

sourceIndex
Int32

データのコピー元の開始位置を示す source のインデックス。

destination
IBuffer

データのコピー先となるバッファー。

destinationIndex
UInt32

データのコピー先の開始位置を示す destination のインデックス。

count
Int32

コピーするバイト数。

属性

例外

source または destination が null です。

countsourceIndex、または destinationIndex が 0 (ゼロ) 未満です。

sourceIndexsource の長さ以上です。 または、sourceIndex を開始位置とする source 内のバイト数が count 未満です。 または、destinationIndex を開始位置とする count バイトのコピーを実行すると、destination の容量を超えます。

適用対象

CopyTo(IBuffer, UInt32, Byte[], Int32, Int32)

重要

この API は CLS 準拠ではありません。

コピー元のバッファー内の開始インデックス、コピー先の配列内の開始インデックス、およびコピーするバイト数を指定して、コピー元のバッファー (Windows.Storage.Streams.IBuffer) からコピー先の配列にバイトをコピーします。

public:
[System::Runtime::CompilerServices::Extension]
 static void CopyTo(Windows::Storage::Streams::IBuffer ^ source, System::UInt32 sourceIndex, cli::array <System::Byte> ^ destination, int destinationIndex, int count);
[System.CLSCompliant(false)]
public static void CopyTo (this Windows.Storage.Streams.IBuffer source, uint sourceIndex, byte[] destination, int destinationIndex, int count);
[<System.CLSCompliant(false)>]
static member CopyTo : Windows.Storage.Streams.IBuffer * uint32 * byte[] * int * int -> unit
<Extension()>
Public Sub CopyTo (source As IBuffer, sourceIndex As UInteger, destination As Byte(), destinationIndex As Integer, count As Integer)

パラメーター

source
IBuffer

データのコピー元となるバッファー。

sourceIndex
UInt32

データのコピー元の開始位置を示す source のインデックス。

destination
Byte[]

データのコピー先の配列。

destinationIndex
Int32

データのコピー先の開始位置を示す destination のインデックス。

count
Int32

コピーするバイト数。

属性

例外

source または destination が null です。

countsourceIndex、または destinationIndex が 0 (ゼロ) 未満です。

sourceIndexsource の容量と同じか超えています。 または、destinationIndexdestination の長さ以上です。 または、sourceIndex を開始位置とする source 内のバイト数が count 未満です。 または、destinationIndex を開始位置とする count バイトのコピーを実行すると、destination のサイズを超えます。

適用対象

CopyTo(IBuffer, UInt32, IBuffer, UInt32, UInt32)

重要

この API は CLS 準拠ではありません。

コピー元の開始インデックス、コピー先の開始インデックス、およびコピーするバイト数を指定して、コピー元のバッファー (Windows.Storage.Streams.IBuffer) からコピー先のバッファーにバイトをコピーします。

public:
[System::Runtime::CompilerServices::Extension]
 static void CopyTo(Windows::Storage::Streams::IBuffer ^ source, System::UInt32 sourceIndex, Windows::Storage::Streams::IBuffer ^ destination, System::UInt32 destinationIndex, System::UInt32 count);
[System.CLSCompliant(false)]
public static void CopyTo (this Windows.Storage.Streams.IBuffer source, uint sourceIndex, Windows.Storage.Streams.IBuffer destination, uint destinationIndex, uint count);
[<System.CLSCompliant(false)>]
static member CopyTo : Windows.Storage.Streams.IBuffer * uint32 * Windows.Storage.Streams.IBuffer * uint32 * uint32 -> unit
<Extension()>
Public Sub CopyTo (source As IBuffer, sourceIndex As UInteger, destination As IBuffer, destinationIndex As UInteger, count As UInteger)

パラメーター

source
IBuffer

データのコピー元となるバッファー。

sourceIndex
UInt32

データのコピー元の開始位置を示す source のインデックス。

destination
IBuffer

データのコピー先となるバッファー。

destinationIndex
UInt32

データのコピー先の開始位置を示す destination のインデックス。

count
UInt32

コピーするバイト数。

属性

例外

source または destination が null です。

countsourceIndex、または destinationIndex が 0 (ゼロ) 未満です。

sourceIndexsource の容量と同じか超えています。 または、destinationIndexdestination の容量と同じか超えています。 または、sourceIndex を開始位置とする source 内のバイト数が count 未満です。 または、destinationIndex を開始位置とする count バイトのコピーを実行すると、destination の容量を超えます。

適用対象