Copies the representation of this sub structure to the specified array.
            
Namespace: SharpAssembler.x86Assembly: SharpAssembler x86-64 (in SharpAssembler x86-64.dll) Version: 1.0.0.0 (1.0.0.0)
 Syntax
Syntax
| C# | 
|---|
| public int CopyTo( byte[] target, int index, int count ) | 
| Visual Basic | 
|---|
| Public Function CopyTo ( _ target As Byte(), _ index As Integer, _ count As Integer _ ) As Integer | 
| Visual C++ | 
|---|
| public: int CopyTo( array<unsigned char>^ target, int index, int count ) | 
Parameters
- target
- Type: array<System..::..Byte>[]()[][]
 The array to copy to.
- index
- Type: System..::..Int32
 The index at which copying starts.
- count
- Type: System..::..Int32
 The maximum number of bytes to copy; or -1 to specify no limit.
Return Value
The number of bytes copied. Exceptions
Exceptions
| Exception | Condition | 
|---|---|
| System..::..ArgumentNullException | target == null | 
| System..::..ArgumentOutOfRangeException | index < 0 || index >= target.Length | 
| System..::..ArgumentOutOfRangeException | count != -1 && (count < 0 || index + count - 1 >= target.Length) | 
 Contracts
Contracts
| Requires | ||
|---|---|---|
| target != null 
 | ||
| index >= 0 && index < target.Length 
 | ||
| count == -1 || (count >= 0 && index + count - 1 < target.Length) 
 | 





