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.
Afficher le fichier Open project: paulirwin/lucene.net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public ByteVector ( ) : System
Résultat System

ByteVector() public méthode

public ByteVector ( int capacity ) : System
capacity int
Résultat System

ByteVector() public méthode

public ByteVector ( sbyte a ) : System
a sbyte
Résultat System

ByteVector() public méthode

public ByteVector ( sbyte a, int capacity ) : System
a sbyte
capacity int
Résultat System

alloc() public méthode

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

capacity() public méthode

returns current capacity of array
public capacity ( ) : int
Résultat int

get() public méthode

public get ( int index ) : sbyte
index int
Résultat sbyte

length() public méthode

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

put() public méthode

public put ( int index, sbyte val ) : void
index int
val sbyte
Résultat void

trimToSize() public méthode

public trimToSize ( ) : void
Résultat void