BinaryReader.FillBuffer(Int32) Método
Definição
Preenche o buffer interno com o número especificado de bytes lidos do fluxo.Fills the internal buffer with the specified number of bytes read from the stream.
protected:
virtual void FillBuffer(int numBytes);
protected virtual void FillBuffer (int numBytes);
abstract member FillBuffer : int -> unit
override this.FillBuffer : int -> unit
Protected Overridable Sub FillBuffer (numBytes As Integer)
Parâmetros
- numBytes
- Int32
O número de bytes a serem lidos.The number of bytes to be read.
Exceções
O final do fluxo foi atingido antes que numBytes pudesse ser lido.The end of the stream is reached before numBytes could be read.
Ocorreu um erro de E/S.An I/O error occurred.
O numBytes solicitado é maior que o tamanho do buffer interno.Requested numBytes is larger than the internal buffer size.
Comentários
O tamanho do buffer interno é o valor maior entre 16 e o valor retornado pelo GetMaxByteCount para a codificação especificada.The internal buffer size is the larger value between 16 and the value returned by GetMaxByteCount for the specified encoding.
Para obter uma lista de tarefas comuns de e/s, consulte tarefas comuns de e/s.For a list of common I/O tasks, see Common I/O Tasks.