C# Class natix.CompactDS.LongStream

A stream and random access of positive long values.
Inheritance: ILoadSave
Show file Open project: sadit/natix Class Usage Examples

Public Methods

Method Description
Add ( IEnumerable array ) : int

Add the specified long value to the stream. Returns the offset of the first inserted value in the underlying OctetStream.

Add ( long v ) : int

Add the specified long value to the stream. Returns the offset in the underlying OctetStream.

Decompress ( int firstIndex, int count ) : List
Decompress ( List list, OctetStream ctx, int count ) : void
Decompress ( List list, int firstIndex, int count ) : void
Load ( BinaryReader Input ) : void
LongStream ( ) : System
LongStream ( LongStream longstream ) : System
Read ( ) : long
Save ( BinaryWriter Output ) : void
this ( int index ) : long

Retrives the long stored at index position of the stream

Method Details

Add() public method

Add the specified long value to the stream. Returns the offset of the first inserted value in the underlying OctetStream.
public Add ( IEnumerable array ) : int
array IEnumerable
return int

Add() public method

Add the specified long value to the stream. Returns the offset in the underlying OctetStream.
public Add ( long v ) : int
v long V.
return int

Decompress() public method

public Decompress ( int firstIndex, int count ) : List
firstIndex int
count int
return List

Decompress() public method

public Decompress ( List list, OctetStream ctx, int count ) : void
list List
ctx OctetStream
count int
return void

Decompress() public method

public Decompress ( List list, int firstIndex, int count ) : void
list List
firstIndex int
count int
return void

Load() public method

public Load ( BinaryReader Input ) : void
Input System.IO.BinaryReader
return void

LongStream() public method

public LongStream ( ) : System
return System

LongStream() public method

public LongStream ( LongStream longstream ) : System
longstream LongStream
return System

Read() public method

public Read ( ) : long
return long

Save() public method

public Save ( BinaryWriter Output ) : void
Output System.IO.BinaryWriter
return void

this() public method

Retrives the long stored at index position of the stream
public this ( int index ) : long
index int
return long