C# Класс natix.CompactDS.OctetStream

Creates a stream of bytes. Reads and writes bytes from and to the current position in a given Context object
Наследование: ILoadSave
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Add() публичный Метод

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
Результат int

Add() публичный Метод

Add a value to the end of the stream. Returns the insertion position
public Add ( byte b ) : int
b byte
Результат int

Load() публичный Метод

public Load ( BinaryReader Input ) : void
Input System.IO.BinaryReader
Результат void

OctetStream() публичный Метод

public OctetStream ( ) : System
Результат System

OctetStream() публичный Метод

public OctetStream ( List input_stream ) : System
input_stream List
Результат System

OctetStream() публичный Метод

public OctetStream ( OctetStream oct_stream ) : System
oct_stream OctetStream
Результат System

Read() публичный Метод

Read the current value at Position, then increments ctx.Offset
public Read ( Context ctx ) : byte
ctx Context
Результат byte

Save() публичный Метод

public Save ( BinaryWriter Output ) : void
Output System.IO.BinaryWriter
Результат void

Write() публичный Метод

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
Результат void

Write() публичный Метод

Writes times times the given byte.
public Write ( byte b, int times, Context ctx ) : void
b byte
times int
ctx Context
Результат void