C# Class natix.CompactDS.ListSDiffCoderRL

List short integers coder R. Encodes only numbers bigger equal to 1. Consecutive sequences of 1's are priorized.
Inheritance: ListSDiffCoder
Exibir arquivo Open project: sadit/natix Class Usage Examples

Public Methods

Method Description
Add ( int item ) : void
Build ( IList list ) : void
ExtractFrom ( int start, int count ) : IEnumerable
FindSum ( int start, int sum, BitStreamCtx ctx, int &run_len ) : int

Finds the sum or the insertion position of sum.

GetItem ( int index ) : int
GetItem ( int index, BitStreamCtx ctx, int &run_len ) : int
GetNext ( BitStreamCtx ctx, int &run_len ) : int
ListSDiffCoderRL ( ) : System
ListSDiffCoderRL ( IList list, IIEncoder32 coder, short blocksize ) : System
ListSDiffCoderRL ( ListSDiffCoder list ) : System
PrintDebug ( ) : void
Sum ( int start, int count, BitStreamCtx ctx, int &run_len ) : int
_Add ( int u ) : void
_AddRL ( int run_len ) : void

Protected Methods

Method Description
LocateAt ( int index, BitStreamCtx ctx ) : int

Locates ctx at index. Returns the remaining run_len value if any

Method Details

Add() public method

public Add ( int item ) : void
item int
return void

Build() public method

public Build ( IList list ) : void
list IList
return void

ExtractFrom() public method

public ExtractFrom ( int start, int count ) : IEnumerable
start int
count int
return IEnumerable

FindSum() public method

Finds the sum or the insertion position of sum.
public FindSum ( int start, int sum, BitStreamCtx ctx, int &run_len ) : int
start int
sum int
ctx BitStreamCtx
run_len int
return int

GetItem() public method

public GetItem ( int index ) : int
index int
return int

GetItem() public method

public GetItem ( int index, BitStreamCtx ctx, int &run_len ) : int
index int
ctx BitStreamCtx
run_len int
return int

GetNext() public method

public GetNext ( BitStreamCtx ctx, int &run_len ) : int
ctx BitStreamCtx
run_len int
return int

ListSDiffCoderRL() public method

public ListSDiffCoderRL ( ) : System
return System

ListSDiffCoderRL() public method

public ListSDiffCoderRL ( IList list, IIEncoder32 coder, short blocksize ) : System
list IList
coder IIEncoder32
blocksize short
return System

ListSDiffCoderRL() public method

public ListSDiffCoderRL ( ListSDiffCoder list ) : System
list ListSDiffCoder
return System

LocateAt() protected method

Locates ctx at index. Returns the remaining run_len value if any
protected LocateAt ( int index, BitStreamCtx ctx ) : int
index int
ctx BitStreamCtx
return int

PrintDebug() public method

public PrintDebug ( ) : void
return void

Sum() public method

public Sum ( int start, int count, BitStreamCtx ctx, int &run_len ) : int
start int
count int
ctx BitStreamCtx
run_len int
return int

_Add() public method

public _Add ( int u ) : void
u int
return void

_AddRL() public method

public _AddRL ( int run_len ) : void
run_len int
return void