What does the FillBuffer method do for a BinaryReader?

According to the documentation :

Fills the internal buffer with the specified number of bytes read from the stream.

What does it mean (what is the internal buffer?)?

+3
source share
3 answers

BinaryReaderhas an internal buffer, so it doesn’t need to do so many small reads in the underlying stream, especially when reading character data that may need some reading. You do not need to call this manually.

0
source

Please note that the method is declared as protected.

, , , BinaryReader, .

0

, - , ; , "" () 8 . :

  • ""
  • EOF ( )
  • ,

, , , [] '

; , :

  • ""
  • 1 ( )
  • [] '(, BitConverter)

So just work

0
source

Source: https://habr.com/ru/post/1770005/


All Articles