# io.BufferedReader

### io.BufferedReader ( *raw*, *buffer\_size=DEFAULT\_BUFFER\_SIZE* )

Буфер, обеспечивающий доступ более высокого уровня к читаемому последовательному объекту [RawIOBase](https://treasuremaster.gitbook.io/python-docs/moduli-standartnoi-biblioteki-1/obshie-sluzhby-operacionnoi-sistemy/io/io.rawiobase). Он наследует [BufferedIOBase](https://treasuremaster.gitbook.io/python-docs/moduli-standartnoi-biblioteki-1/obshie-sluzhby-operacionnoi-sistemy/io/io.bufferediobase). При чтении данных из этого объекта может быть запрошен больший объем данных из базового необработанного потока и сохранен во внутреннем буфере. Буферизованные данные могут быть возвращены непосредственно при последующих чтениях.

Конструктор создает **BufferedReader** для данного читаемого необработанного потока ***raw*** и ***buffer\_size***. Если ***buffer\_size*** не указан, используется [**DEFAULT\_BUFFER\_SIZE**](https://treasuremaster.gitbook.io/python-docs/moduli-standartnoi-biblioteki-1/obshie-sluzhby-operacionnoi-sistemy/io/vysokourovnevyi-interfeis-modulya/io.default_buffer_size).

**BufferedReader** предоставляет или переопределяет эти методы в дополнение к методам из [BufferedIOBase](https://treasuremaster.gitbook.io/python-docs/moduli-standartnoi-biblioteki-1/obshie-sluzhby-operacionnoi-sistemy/io/io.bufferediobase) и [IOBase](https://treasuremaster.gitbook.io/python-docs/moduli-standartnoi-biblioteki-1/obshie-sluzhby-operacionnoi-sistemy/io/io.iobase):

* peek ()
* [read ()](https://treasuremaster.gitbook.io/python-docs/moduli-standartnoi-biblioteki-1/obshie-sluzhby-operacionnoi-sistemy/io/io.bufferedreader/io.bufferedreader.read) - читает и возвращает количество байтов заданного размера
* read1 ()


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://treasuremaster.gitbook.io/python-docs/moduli-standartnoi-biblioteki-1/obshie-sluzhby-operacionnoi-sistemy/io/io.bufferedreader.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
