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
파일 보기 프로젝트 열기: sadit/natix 1 사용 예제들

공개 메소드들

메소드 설명
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