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
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Analysis.Compound.Hyphenation
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class ByteVector
Constructors
| Improve this Doc View SourceByteVector()
Declaration
public ByteVector()
ByteVector(Byte[])
Declaration
public ByteVector(byte[] a)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | a |
ByteVector(Byte[], Int32)
Declaration
public ByteVector(byte[] a, int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | a | |
System.Int32 | capacity |
ByteVector(Int32)
Declaration
public ByteVector(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity |
Properties
| Improve this Doc View SourceArray
Declaration
public virtual byte[] Array { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Capacity
returns current capacity of array
Declaration
public virtual int Capacity { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
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 |
Length
return number of items in array
Declaration
public virtual int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAlloc(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 |
TrimToSize()
Declaration
public virtual void TrimToSize()