BinaryWriter Members
Writes primitive types in binary to a stream and supports writing strings in a specific encoding.
The following tables list the members exposed by the BinaryWriter type.
Public Constructors
(see also
Protected Constructors
)
| Name | Description | |
|---|---|---|
| BinaryWriter | Overloaded. Initializes a new instance of the BinaryWriter class that writes to a stream. |
Protected Constructors
| Name | Description | |
|---|---|---|
| BinaryWriter | Overloaded. Initializes a new instance of the BinaryWriter class that writes to a stream. |
Public Fields
(see also
Protected Fields
)
| Name | Description | |
|---|---|---|
| Null | Specifies a BinaryWriter with no backing store. |
Protected Fields
| Name | Description | |
|---|---|---|
| OutStream | Holds the underlying stream. |
Public Properties
| Name | Description | |
|---|---|---|
| BaseStream | Gets the underlying stream of the BinaryWriter. |
Public Methods
(see also
Protected Methods
)
| Name | Description | |
|---|---|---|
| Close | Closes the current BinaryWriter and the underlying stream. |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| Flush | Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| Seek | Sets the position within the current stream. |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| Write | Overloaded. Writes a value to the current stream. |
Protected Methods
| Name | Description | |
|---|---|---|
| Dispose | Releases the unmanaged resources used by the BinaryWriter and optionally releases the managed resources. |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| Write7BitEncodedInt | Writes a 32-bit integer in a compressed format. |
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| System.IDisposable.Dispose |
See Also