C# Class org.apache.lucene.analysis.compound.hyphenation.ByteVector

This class implements a simple byte vector with access to the underlying array. This class has been taken from the Apache FOP project (http://xmlgraphics.apache.org/fop/). They have been slightly modified.
Mostra file Open project: paulirwin/lucene.net Class Usage Examples

Public Methods

Method Description
ByteVector ( ) : System
ByteVector ( int capacity ) : System
ByteVector ( sbyte a ) : System
ByteVector ( sbyte a, int capacity ) : System
alloc ( int size ) : int

This is to implement memory allocation in the array. Like malloc().

capacity ( ) : int

returns current capacity of array

get ( int index ) : sbyte
length ( ) : int

return number of items in array

put ( int index, sbyte val ) : void
trimToSize ( ) : void

Method Details

ByteVector() public method

public ByteVector ( ) : System
return System

ByteVector() public method

public ByteVector ( int capacity ) : System
capacity int
return System

ByteVector() public method

public ByteVector ( sbyte a ) : System
a sbyte
return System

ByteVector() public method

public ByteVector ( sbyte a, int capacity ) : System
a sbyte
capacity int
return System

alloc() public method

This is to implement memory allocation in the array. Like malloc().
public alloc ( int size ) : int
size int
return int

capacity() public method

returns current capacity of array
public capacity ( ) : int
return int

get() public method

public get ( int index ) : sbyte
index int
return sbyte

length() public method

return number of items in array
public length ( ) : int
return int

put() public method

public put ( int index, sbyte val ) : void
index int
val sbyte
return void

trimToSize() public method

public trimToSize ( ) : void
return void