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
Afficher le fichier Open project: i-e-b/HLS---Smooth-Encoder Class Usage Examples

Protected Properties

Свойство Type Description
OutStream Stream

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

BigEndianWriter() public méthode

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
Résultat System

Close() public méthode

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

Flush() public méthode

public Flush ( ) : void
Résultat void

Seek() public méthode

Not supported
public Seek ( int offset, SeekOrigin origin ) : long
offset int
origin SeekOrigin
Résultat long

Write() public méthode

public Write ( System.Guid uuid_head ) : void
uuid_head System.Guid
Résultat void

Write() public méthode

Writes a BYTE (0 or 1) value
public Write ( bool value ) : void
value bool
Résultat void

Write() public méthode

public Write ( byte value ) : void
value byte
Résultat void

Write() public méthode

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
Résultat void

Write() public méthode

public Write ( char ch ) : void
ch char
Résultat void

Write() public méthode

public Write ( char chars, int index, int count ) : void
chars char
index int
count int
Résultat void

Write() public méthode

public Write ( decimal value ) : void
value decimal
Résultat void

Write() public méthode

public Write ( double value ) : void
value double
Résultat void

Write() public méthode

public Write ( float value ) : void
value float
Résultat void

Write() public méthode

public Write ( int value ) : void
value int
Résultat void

Write() public méthode

public Write ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( sbyte value ) : void
value sbyte
Résultat void

Write() public méthode

public Write ( short value ) : void
value short
Résultat void

Write() public méthode

Not Supported
public Write ( string value ) : void
value string
Résultat void

Write() public méthode

public Write ( uint value ) : void
value uint
Résultat void

Write() public méthode

public Write ( ulong value ) : void
value ulong
Résultat void

Write() public méthode

public Write ( ushort value ) : void
value ushort
Résultat void

Write7BitEncodedInt() protected méthode

Not supported
protected Write7BitEncodedInt ( int value ) : void
value int
Résultat void

WriteForward() public méthode

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

WriteReverse() public méthode

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

Property Details

OutStream protected_oe property

Holds the underlying stream.
protected Stream OutStream
Résultat Stream