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