MetadataBuilder.SetCapacity Método
Definición
Sobrecargas
SetCapacity(HeapIndex, Int32) |
Establece la capacidad del montón especificado.Sets the capacity of the specified heap. |
SetCapacity(TableIndex, Int32) |
Establece la capacidad de la tabla especificada.Sets the capacity of the specified table. |
SetCapacity(HeapIndex, Int32)
Establece la capacidad del montón especificado.Sets the capacity of the specified heap.
public:
void SetCapacity(System::Reflection::Metadata::Ecma335::HeapIndex heap, int byteCount);
public void SetCapacity (System.Reflection.Metadata.Ecma335.HeapIndex heap, int byteCount);
member this.SetCapacity : System.Reflection.Metadata.Ecma335.HeapIndex * int -> unit
Public Sub SetCapacity (heap As HeapIndex, byteCount As Integer)
Parámetros
- heap
- HeapIndex
El índice del montón.The heap index.
- byteCount
- Int32
Número de bytes.The number of bytes.
Excepciones
heap
no es un índice de montón válido.heap
is not a valid heap index.
o bien-or-
byteCount
es negativo.byteCount
is negative.
Comentarios
Utilice este método para reducir las asignaciones si el número aproximado de bytes se conoce con anterioridad.Use this method to reduce allocations if the approximate number of bytes is known ahead of time.
Se aplica a
SetCapacity(TableIndex, Int32)
Establece la capacidad de la tabla especificada.Sets the capacity of the specified table.
public:
void SetCapacity(System::Reflection::Metadata::Ecma335::TableIndex table, int rowCount);
public void SetCapacity (System.Reflection.Metadata.Ecma335.TableIndex table, int rowCount);
member this.SetCapacity : System.Reflection.Metadata.Ecma335.TableIndex * int -> unit
Public Sub SetCapacity (table As TableIndex, rowCount As Integer)
Parámetros
- table
- TableIndex
El índice de tabla.The table index.
- rowCount
- Int32
Número de filas de la tabla.The number of rows in the table.
Excepciones
table
no es un índice de tabla válido.table
is not a valid table index.
o bien-or-
rowCount
es negativo.rowCount
is negative.
Comentarios
Utilice este método para reducir las asignaciones si el número aproximado de filas se sabe con anterioridad.Use this method to reduce allocations if the approximate number of rows is known ahead of time.