Class ExtendedBinaryWriter
- Namespace
- FluentModbus
- Assembly
- FluentModbus.dll
A binary writer with extended capability to handle big-endian data.
public class ExtendedBinaryWriter : BinaryWriter, IAsyncDisposable, IDisposable
- Inheritance
-
ExtendedBinaryWriter
- Implements
- Inherited Members
Constructors
ExtendedBinaryWriter(Stream)
Initializes a new instance of the ExtendedBinaryWriter instance.
public ExtendedBinaryWriter(Stream stream)
Parameters
stream
StreamThe underlying data stream.
Methods
WriteReverse(double)
Writes the provided value to the stream.
public void WriteReverse(double value)
Parameters
value
doubleThe value to be written.
WriteReverse(short)
Writes the provided value to the stream.
public void WriteReverse(short value)
Parameters
value
shortThe value to be written.
WriteReverse(int)
Writes the provided value to the stream.
public void WriteReverse(int value)
Parameters
value
intThe value to be written.
WriteReverse(long)
Writes the provided value to the stream.
public void WriteReverse(long value)
Parameters
value
longThe value to be written.
WriteReverse(float)
Writes the provided value to the stream.
public void WriteReverse(float value)
Parameters
value
floatThe value to be written.
WriteReverse(ushort)
Writes the provided value to the stream.
public void WriteReverse(ushort value)
Parameters
value
ushortThe value to be written.
WriteReverse(uint)
Writes the provided value to the stream.
public void WriteReverse(uint value)
Parameters
value
uintThe value to be written.
WriteReverse(ulong)
Writes the provided value to the stream.
public void WriteReverse(ulong value)
Parameters
value
ulongThe value to be written.