Class 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.
Inherited Members
Namespace: Lucene.Net.Analysis.Compound.Hyphenation
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class ByteVector
Constructors
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.
Declaration
public ByteVector()
ByteVector(byte[])
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.
Declaration
public ByteVector(byte[] a)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | a |
ByteVector(byte[], int)
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.
Declaration
public ByteVector(byte[] a, int capacity)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | a | |
| int | capacity |
ByteVector(int)
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.
Declaration
public ByteVector(int capacity)
Parameters
| Type | Name | Description |
|---|---|---|
| int | capacity |
Properties
Array
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.
Declaration
public virtual byte[] Array { get; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Capacity
returns current capacity of array
Declaration
public virtual int Capacity { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
LUCENENET indexer for .NET
Declaration
public virtual byte this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| byte |
Length
return number of items in array
Declaration
public virtual int Length { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Alloc(int)
This is to implement memory allocation in the array. Like malloc().
Declaration
public virtual int Alloc(int size)
Parameters
| Type | Name | Description |
|---|---|---|
| int | size |
Returns
| Type | Description |
|---|---|
| int |
TrimToSize()
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.
Declaration
public virtual void TrimToSize()