SafeBuffer.WriteArray<T>(UInt64, T[], Int32, Int32) Método
Definición
Importante
Esta API no es conforme a CLS.
Escribe el número especificado de tipos de valor en una ubicación de memoria leyendo bytes a partir de la ubicación especificada en la matriz de entrada.Writes the specified number of value types to a memory location by reading bytes starting from the specified location in the input array.
public:
generic <typename T>
where T : value class void WriteArray(System::UInt64 byteOffset, cli::array <T> ^ array, int index, int count);
[System.CLSCompliant(false)]
public void WriteArray<T> (ulong byteOffset, T[] array, int index, int count) where T : struct;
member this.WriteArray : uint64 * 'T[] * int * int -> unit (requires 'T : struct)
Public Sub WriteArray(Of T As Structure) (byteOffset As ULong, array As T(), index As Integer, count As Integer)
Parámetros de tipo
- T
Tipo de valor que se va a escribir.The value type to write.
Parámetros
- byteOffset
- UInt64
Ubicación de la memoria en la que se va a escribir.The location in memory to write to.
- array
- T[]
Matriz de entrada.The input array.
- index
- Int32
Desplazamiento en la matriz a partir del cual se va a empezar a leer.The offset in the array to start reading from.
- count
- Int32
Número de tipos de valor que se van a escribir.The number of value types to write.
- Atributos
Excepciones
array
es null
.array
is null
.
index
o count
es menor que cero.index
or count
is less than zero.
La longitud de la matriz de entrada menos index
es menor que count
.The length of the input array minus index
is less than count
.
No se ha llamado al método Initialize.The Initialize method has not been called.
Comentarios
Cada elemento de la matriz de entrada está formado por el tipo de valor genérico de la clase.Each element in the input array consists of the generic value type of the class.