Click or drag to resize

BinaryReader Methods

The BinaryReader type exposes the following members.

Methods
 NameDescription
Public methodClose Closes the current BinaryReader and the underlying file.
Public methodDispose Disposes the current BinaryReader and the underlying file and then suppresses further disposing.
Protected methodDispose(Boolean) Checks to see if Dispose has already been called.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize BinaryReader Destructor.
(Overrides ObjectFinalize)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodPeekChar Returns the next available character in the file, but does not change the position in the file.
Public methodRead Reads the next available character in the file and moves the current file pointer forward according to the current encoding.
Public methodRead(Byte, Int32, Int32) Reads count bytes from the stream with index as the starting point in the byte array.
Public methodRead(Char, Int32, Int32) Reads count characters from the stream with index as the starting point in the character array.
Public methodReadBoolean Reads a boolean value from the file at the current position and advances the file pointer by one byte.
Public methodReadByte Reads the next byte from the current stream and advances the current file pointer by one byte.
Public methodReadBytes Reads the specified number of bytes from the current file into a byte array and moves the file pointer forward by the number of bytes read.
Public methodReadChar Reads the next character from the file and moves the file pointer forward the number of bytes specified by the encoding.
Public methodReadChars Reads the number of characters specified from the file. The data is returned in a character array and the file pointer is moved forward according to the encoding of the file.
Public methodReadDecimal Reads a decimal value from the current file and moves the file pointer forward by sixteen bytes.
Public methodReadDouble Reads a double from the current file and moves the file pointer forward by eight bytes.
Public methodReadInt16 Reads a short from the current file and moves the file pointer forward by two bytes.
Public methodReadInt32 Reads a integer from the current file and moves the file pointer forward by four bytes.
Public methodReadInt64 Reads a long from the current file and moves the file pointer forward by eight bytes.
Public methodReadSByte Reads a signed byte from this stream and advances the current position of the stream by one byte.
Public methodReadSingle Reads a float from the current file and moves the file pointer forward by four bytes.
Public methodReadString Reads a string from the current file. The string is prefixed with the length, encoded as an integer seven bits at a time. The file pointer is moved forward the size of the string.
Public methodReadUInt16 Reads an unsigned short from the current file and moves the file pointer forward by two bytes.
Public methodReadUInt32 Reads an unsigned integer from the current file and moves the file pointer forward by four bytes.
Public methodReadUInt64 Reads a unsigned long from the current file and moves the file pointer forward by eight bytes.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also