Search Results for

    Show / Hide Table of Contents

    Class BEBinaryWriter

    Extends the BinaryWriter class to allow writing values in the BigEndian format.

    Inheritance
    object
    BinaryWriter
    BEBinaryWriter
    Implements
    IDisposable
    Inherited Members
    BinaryWriter.Null
    BinaryWriter.OutStream
    BinaryWriter.Close()
    BinaryWriter.Dispose()
    BinaryWriter.Dispose(bool)
    BinaryWriter.Flush()
    BinaryWriter.Seek(int, SeekOrigin)
    BinaryWriter.Write(bool)
    BinaryWriter.Write(byte)
    BinaryWriter.Write(byte[])
    BinaryWriter.Write(byte[], int, int)
    BinaryWriter.Write(char)
    BinaryWriter.Write(char[])
    BinaryWriter.Write(char[], int, int)
    BinaryWriter.Write(decimal)
    BinaryWriter.Write(sbyte)
    BinaryWriter.Write(string)
    BinaryWriter.Write7BitEncodedInt(int)
    BinaryWriter.BaseStream
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.IO
    Assembly: NetTopologySuite.dll
    Syntax
    public class BEBinaryWriter : BinaryWriter, IDisposable
    Remarks

    While BEBinaryWriter extends BinaryWriter adding methods for writing integer values (Write(int)) and double values (Write(double)) in the BigEndian format, this implementation overrides methods, such Write(int) and Write(double) and more, for writing BigEndian values in the BigEndian format.

    Constructors

    | Edit this page View Source

    BEBinaryWriter()

    Initializes a new instance of the BEBinaryWriter class.

    Declaration
    public BEBinaryWriter()
    | Edit this page View Source

    BEBinaryWriter(Stream)

    Initializes a new instance of the BEBinaryWriter class.

    Declaration
    public BEBinaryWriter(Stream output)
    Parameters
    Type Name Description
    Stream output

    The supplied stream.

    Exceptions
    Type Condition
    ArgumentNullException

    output is null.

    ArgumentException

    The stream does not support writing, or the stream is already closed.

    | Edit this page View Source

    BEBinaryWriter(Stream, Encoding)

    Initializes a new instance of the BEBinaryWriter class.

    Declaration
    public BEBinaryWriter(Stream output, Encoding encoding)
    Parameters
    Type Name Description
    Stream output

    The supplied stream.

    Encoding encoding

    The character encoding.

    Exceptions
    Type Condition
    ArgumentNullException

    output or encoding is null.

    ArgumentException

    The stream does not support writing, or the stream is already closed.

    Methods

    | Edit this page View Source

    Write(double)

    Writes an eight-byte floating-point value to the current stream using BigEndian encoding and advances the stream position by eight bytes.

    Declaration
    public override void Write(double value)
    Parameters
    Type Name Description
    double value

    The eight-byte floating-point value to write.

    Overrides
    BinaryWriter.Write(double)
    Exceptions
    Type Condition
    ObjectDisposedException

    The stream is closed.

    IOException

    An I/O error occurs.

    | Edit this page View Source

    Write(short)

    Writes a two-byte signed integer to the current stream using BigEndian encoding and advances the stream position by two bytes.

    Declaration
    public override void Write(short value)
    Parameters
    Type Name Description
    short value

    The two-byte signed integer to write.

    Overrides
    BinaryWriter.Write(short)
    Exceptions
    Type Condition
    ObjectDisposedException

    The stream is closed.

    IOException

    An I/O error occurs.

    | Edit this page View Source

    Write(int)

    Writes a four-byte signed integer to the current stream using BigEndian encoding and advances the stream position by four bytes.

    Declaration
    public override void Write(int value)
    Parameters
    Type Name Description
    int value

    The four-byte signed integer to write.

    Overrides
    BinaryWriter.Write(int)
    Exceptions
    Type Condition
    ObjectDisposedException

    The stream is closed.

    IOException

    An I/O error occurs.

    | Edit this page View Source

    Write(long)

    Writes an eight-byte signed integer to the current stream using BigEndian encoding and advances the stream position by eight bytes.

    Declaration
    public override void Write(long value)
    Parameters
    Type Name Description
    long value

    The eight-byte signed integer to write.

    Overrides
    BinaryWriter.Write(long)
    Exceptions
    Type Condition
    ObjectDisposedException

    The stream is closed.

    IOException

    An I/O error occurs.

    | Edit this page View Source

    Write(float)

    Writes a four-byte floating-point value to the current stream using BigEndian encoding and advances the stream position by four bytes.

    Declaration
    public override void Write(float value)
    Parameters
    Type Name Description
    float value

    The four-byte floating-point value to write.

    Overrides
    BinaryWriter.Write(float)
    Exceptions
    Type Condition
    ObjectDisposedException

    The stream is closed.

    IOException

    An I/O error occurs.

    | Edit this page View Source

    Write(ushort)

    Writes a two-byte unsigned integer to the current stream using BigEndian encoding and advances the stream position by two bytes.

    Declaration
    [CLSCompliant(false)]
    public override void Write(ushort value)
    Parameters
    Type Name Description
    ushort value

    The two-byte unsigned integer to write.

    Overrides
    BinaryWriter.Write(ushort)
    Exceptions
    Type Condition
    ObjectDisposedException

    The stream is closed.

    IOException

    An I/O error occurs.

    | Edit this page View Source

    Write(uint)

    Writes a four-byte unsigned integer to the current stream using BigEndian encoding and advances the stream position by four bytes.

    Declaration
    [CLSCompliant(false)]
    public override void Write(uint value)
    Parameters
    Type Name Description
    uint value

    The four-byte unsigned integer to write.

    Overrides
    BinaryWriter.Write(uint)
    Exceptions
    Type Condition
    ObjectDisposedException

    The stream is closed.

    IOException

    An I/O error occurs.

    | Edit this page View Source

    Write(ulong)

    Writes an eight-byte unsigned integer to the current stream using BigEndian encoding and advances the stream position by eight bytes.

    Declaration
    [CLSCompliant(false)]
    public override void Write(ulong value)
    Parameters
    Type Name Description
    ulong value

    The eight-byte unsigned integer to write.

    Overrides
    BinaryWriter.Write(ulong)
    Exceptions
    Type Condition
    ObjectDisposedException

    The stream is closed.

    IOException

    An I/O error occurs.

    Implements

    IDisposable
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX