WindowsRuntimeBufferExtensions.CopyTo Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| CopyTo(Byte[], IBuffer) |
Kopierar alla byte från källmatrisen till målbufferten (Windows. Storage.Streams.IBuffer), med början vid förskjutning 0 (noll) i båda. Metoden uppdaterar inte längden på målbufferten. |
| CopyTo(IBuffer, Byte[]) |
Kopierar alla byte från källbufferten (Windows. Storage.Streams.IBuffer) till målmatrisen med början vid förskjutning 0 (noll) i båda. |
| CopyTo(IBuffer, IBuffer) |
Kopierar alla byte från källbufferten (Windows. Storage.Streams.IBuffer) till målbufferten, med början vid förskjutning 0 (noll) i båda. |
| CopyTo(Byte[], Int32, IBuffer, UInt32, Int32) |
Kopierar byte från källmatrisen till målbufferten (Windows. Storage.Streams.IBuffer), som anger startindexet i källmatrisen, startindexet i målbufferten och antalet byte som ska kopieras. Metoden uppdaterar inte egenskapen Length för målbufferten. |
| CopyTo(IBuffer, UInt32, Byte[], Int32, Int32) |
Kopierar byte från källbufferten (Windows. Storage.Streams.IBuffer) till målmatrisen, ange startindexet i källbufferten, startindexet i målmatrisen och antalet byte som ska kopieras. |
| CopyTo(IBuffer, UInt32, IBuffer, UInt32, UInt32) |
Kopierar byte från källbufferten (Windows. Storage.Streams.IBuffer) till målbufferten, ange startindexet i källan, startindexet i målet och antalet byte som ska kopieras. |
CopyTo(Byte[], IBuffer)
Viktigt!
Detta API uppfyller inte CLS.
Kopierar alla byte från källmatrisen till målbufferten (Windows. Storage.Streams.IBuffer), med början vid förskjutning 0 (noll) i båda. Metoden uppdaterar inte längden på målbufferten.
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)
Parametrar
- source
- Byte[]
Matrisen som data ska kopieras från.
- destination
- Windows.Storage.Streams.IBuffer
Bufferten som data ska kopieras till.
- Attribut
Undantag
source eller destination är null.
Storleken på source överskrider kapaciteten destinationför .
Gäller för
CopyTo(IBuffer, Byte[])
Viktigt!
Detta API uppfyller inte CLS.
Kopierar alla byte från källbufferten (Windows. Storage.Streams.IBuffer) till målmatrisen med början vid förskjutning 0 (noll) i båda.
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())
Parametrar
- source
- Windows.Storage.Streams.IBuffer
Bufferten att kopiera data från.
- destination
- Byte[]
Matrisen som data ska kopieras till.
- Attribut
Undantag
source eller destination är null.
Storleken på source överskrider storleken på destination.
Gäller för
CopyTo(IBuffer, IBuffer)
Viktigt!
Detta API uppfyller inte CLS.
Kopierar alla byte från källbufferten (Windows. Storage.Streams.IBuffer) till målbufferten, med början vid förskjutning 0 (noll) i båda.
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)
Parametrar
- source
- Windows.Storage.Streams.IBuffer
Källbufferten.
- destination
- Windows.Storage.Streams.IBuffer
Målbufferten.
- Attribut
Undantag
source eller destination är null.
Storleken på source överskrider kapaciteten destinationför .
Gäller för
CopyTo(Byte[], Int32, IBuffer, UInt32, Int32)
Viktigt!
Detta API uppfyller inte CLS.
Kopierar byte från källmatrisen till målbufferten (Windows. Storage.Streams.IBuffer), som anger startindexet i källmatrisen, startindexet i målbufferten och antalet byte som ska kopieras. Metoden uppdaterar inte egenskapen Length för målbufferten.
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)
Parametrar
- source
- Byte[]
Matrisen som data ska kopieras från.
- sourceIndex
- Int32
Indexet i source för att börja kopiera data från.
- destination
- Windows.Storage.Streams.IBuffer
Bufferten som data ska kopieras till.
- destinationIndex
- UInt32
Indexet i destination för att börja kopiera data till.
- count
- Int32
Antalet byte som ska kopieras.
- Attribut
Undantag
source eller destination är null.
count, sourceIndex, eller destinationIndex är mindre än 0 (noll).
sourceIndex är större än eller lika med längden på source. -or-The number of bytes in source, beginning at sourceIndex, is less than count. -or-Copying count bytes, med början vid destinationIndex, skulle överskrida kapaciteten destinationför .
Gäller för
CopyTo(IBuffer, UInt32, Byte[], Int32, Int32)
Viktigt!
Detta API uppfyller inte CLS.
Kopierar byte från källbufferten (Windows. Storage.Streams.IBuffer) till målmatrisen, ange startindexet i källbufferten, startindexet i målmatrisen och antalet byte som ska kopieras.
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)
Parametrar
- source
- Windows.Storage.Streams.IBuffer
Bufferten att kopiera data från.
- sourceIndex
- UInt32
Indexet i source för att börja kopiera data från.
- destination
- Byte[]
Matrisen som data ska kopieras till.
- destinationIndex
- Int32
Indexet i destination för att börja kopiera data till.
- count
- Int32
Antalet byte som ska kopieras.
- Attribut
Undantag
source eller destination är null.
count, sourceIndex, eller destinationIndex är mindre än 0 (noll).
sourceIndex är större än eller lika med kapaciteten sourceför . -or-destinationIndex är större än eller lika med längden på destination. -or-The number of bytes in source, beginning at sourceIndex, is less than count. -or-Copying count bytes, med början vid destinationIndex, skulle överskrida storleken på destination.
Gäller för
CopyTo(IBuffer, UInt32, IBuffer, UInt32, UInt32)
Viktigt!
Detta API uppfyller inte CLS.
Kopierar byte från källbufferten (Windows. Storage.Streams.IBuffer) till målbufferten, ange startindexet i källan, startindexet i målet och antalet byte som ska kopieras.
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)
Parametrar
- source
- Windows.Storage.Streams.IBuffer
Bufferten att kopiera data från.
- sourceIndex
- UInt32
Indexet i source för att börja kopiera data från.
- destination
- Windows.Storage.Streams.IBuffer
Bufferten som data ska kopieras till.
- destinationIndex
- UInt32
Indexet i destination för att börja kopiera data till.
- count
- UInt32
Antalet byte som ska kopieras.
- Attribut
Undantag
source eller destination är null.
count, sourceIndex, eller destinationIndex är mindre än 0 (noll).
sourceIndex är större än eller lika med kapaciteten sourceför . -or-destinationIndex är större än eller lika med kapaciteten destinationför . -or-The number of bytes in source, beginning at sourceIndex, is less than count. -or-Copying count bytes, med början vid destinationIndex, skulle överskrida kapaciteten destinationför .