C# Class natix.CompactDS.OctetStream

Creates a stream of bytes. Reads and writes bytes from and to the current position in a given Context object
Inheritance: ILoadSave
Afficher le fichier Open project: sadit/natix Class Usage Examples

Méthodes publiques

Méthode Description
Add ( IEnumerable array ) : int

Add a sequence of values to the end of the stream. Returns the first insertion position. Empty arrays will return the insertion position anyway of a non empty array.

Add ( byte b ) : int

Add a value to the end of the stream. Returns the insertion position

Load ( BinaryReader Input ) : void
OctetStream ( ) : System
OctetStream ( List input_stream ) : System
OctetStream ( OctetStream oct_stream ) : System
Read ( Context ctx ) : byte

Read the current value at Position, then increments ctx.Offset

Save ( BinaryWriter Output ) : void
Write ( byte b, Context ctx ) : void

Writes a byte to the position indicated in ctx.Offset, then increments ctx.Offset

Write ( byte b, int times, Context ctx ) : void

Writes times times the given byte.

Method Details

Add() public méthode

Add a sequence of values to the end of the stream. Returns the first insertion position. Empty arrays will return the insertion position anyway of a non empty array.
public Add ( IEnumerable array ) : int
array IEnumerable
Résultat int

Add() public méthode

Add a value to the end of the stream. Returns the insertion position
public Add ( byte b ) : int
b byte
Résultat int

Load() public méthode

public Load ( BinaryReader Input ) : void
Input System.IO.BinaryReader
Résultat void

OctetStream() public méthode

public OctetStream ( ) : System
Résultat System

OctetStream() public méthode

public OctetStream ( List input_stream ) : System
input_stream List
Résultat System

OctetStream() public méthode

public OctetStream ( OctetStream oct_stream ) : System
oct_stream OctetStream
Résultat System

Read() public méthode

Read the current value at Position, then increments ctx.Offset
public Read ( Context ctx ) : byte
ctx Context
Résultat byte

Save() public méthode

public Save ( BinaryWriter Output ) : void
Output System.IO.BinaryWriter
Résultat void

Write() public méthode

Writes a byte to the position indicated in ctx.Offset, then increments ctx.Offset
public Write ( byte b, Context ctx ) : void
b byte
ctx Context
Résultat void

Write() public méthode

Writes times times the given byte.
public Write ( byte b, int times, Context ctx ) : void
b byte
times int
ctx Context
Résultat void