C# Class System.IO.BigEndianWriter

A class for writing to BigEndian streams (i.e. Network or Video). Designed to be a drop-in replacement for System.IO.BinaryWriter
显示文件 Open project: i-e-b/HLS---Smooth-Encoder Class Usage Examples

Protected Properties

Property Type Description
OutStream Stream

Public Methods

Method Description
BigEndianWriter ( Stream output ) : System

Initializes a new instance of the System.IO.BinaryWriter class based on the supplied stream and using UTF-8 as the encoding for strings.

Close ( ) : void

Closes the current System.IO.BinaryWriter and the underlying stream.

Flush ( ) : void
Seek ( int offset, SeekOrigin origin ) : long

Not supported

Write ( System.Guid uuid_head ) : void
Write ( bool value ) : void

Writes a BYTE (0 or 1) value

Write ( byte value ) : void
Write ( byte buffer, int index, int count ) : void

Write a byte buffer. Current order is preserved (no endian-swap)

Write ( char ch ) : void
Write ( char chars, int index, int count ) : void
Write ( decimal value ) : void
Write ( double value ) : void
Write ( float value ) : void
Write ( int value ) : void
Write ( long value ) : void
Write ( sbyte value ) : void
Write ( short value ) : void
Write ( string value ) : void

Not Supported

Write ( uint value ) : void
Write ( ulong value ) : void
Write ( ushort value ) : void
WriteForward ( byte data ) : void

Write the given byte array in 0..n order

WriteReverse ( byte data ) : void

Write the given byte array in 0..n (reverse) order

Protected Methods

Method Description
BigEndianWriter ( ) : System

Initializes a new instance of the System.IO.BinaryWriter class that writesto a stream.

Write7BitEncodedInt ( int value ) : void

Not supported

Method Details

BigEndianWriter() protected method

Initializes a new instance of the System.IO.BinaryWriter class that writesto a stream.
protected BigEndianWriter ( ) : System
return System

BigEndianWriter() public method

Initializes a new instance of the System.IO.BinaryWriter class based on the supplied stream and using UTF-8 as the encoding for strings.
public BigEndianWriter ( Stream output ) : System
output Stream The output stream
return System

Close() public method

Closes the current System.IO.BinaryWriter and the underlying stream.
public Close ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

Seek() public method

Not supported
public Seek ( int offset, SeekOrigin origin ) : long
offset int
origin SeekOrigin
return long

Write() public method

public Write ( System.Guid uuid_head ) : void
uuid_head System.Guid
return void

Write() public method

Writes a BYTE (0 or 1) value
public Write ( bool value ) : void
value bool
return void

Write() public method

public Write ( byte value ) : void
value byte
return void

Write() public method

Write a byte buffer. Current order is preserved (no endian-swap)
public Write ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
return void

Write() public method

public Write ( char ch ) : void
ch char
return void

Write() public method

public Write ( char chars, int index, int count ) : void
chars char
index int
count int
return void

Write() public method

public Write ( decimal value ) : void
value decimal
return void

Write() public method

public Write ( double value ) : void
value double
return void

Write() public method

public Write ( float value ) : void
value float
return void

Write() public method

public Write ( int value ) : void
value int
return void

Write() public method

public Write ( long value ) : void
value long
return void

Write() public method

public Write ( sbyte value ) : void
value sbyte
return void

Write() public method

public Write ( short value ) : void
value short
return void

Write() public method

Not Supported
public Write ( string value ) : void
value string
return void

Write() public method

public Write ( uint value ) : void
value uint
return void

Write() public method

public Write ( ulong value ) : void
value ulong
return void

Write() public method

public Write ( ushort value ) : void
value ushort
return void

Write7BitEncodedInt() protected method

Not supported
protected Write7BitEncodedInt ( int value ) : void
value int
return void

WriteForward() public method

Write the given byte array in 0..n order
public WriteForward ( byte data ) : void
data byte
return void

WriteReverse() public method

Write the given byte array in 0..n (reverse) order
public WriteReverse ( byte data ) : void
data byte
return void

Property Details

OutStream protected_oe property

Holds the underlying stream.
protected Stream OutStream
return Stream