BufferManager.TakeBuffer(Int32) Método

Definição

Obtém um buffer com, pelo menos, o tamanho especificado do pool.Gets a buffer of at least the specified size from the pool.

public:
 abstract cli::array <System::Byte> ^ TakeBuffer(int bufferSize);
public abstract byte[] TakeBuffer (int bufferSize);
abstract member TakeBuffer : int -> byte[]
Public MustOverride Function TakeBuffer (bufferSize As Integer) As Byte()

Parâmetros

bufferSize
Int32

O tamanho, em bytes, do buffer solicitado.The size, in bytes, of the requested buffer.

Retornos

Byte[]

Uma matriz de bytes que tem o tamanho solicitado do buffer.A byte array that is the requested size of the buffer.

Exceções

bufferSize não pode ser menor que zero.bufferSize cannot be less than zero.

Comentários

Se for bem-sucedido, o sistema retornará um buffer de matriz de bytes de pelo menos o tamanho solicitado.If successful, the system returns a byte array buffer of at least the requested size.

Aplica-se a