Class ByteVector
- Namespace
- iTextSharp.text.pdf.hyphenation
- Assembly
- iTextSharp.LGPLv2.Core.dll
This class implements a simple byte vector with access to the underlying array. @author Carlos Villegas
public class ByteVector
- Inheritance
-
ByteVector
- Inherited Members
Constructors
ByteVector()
public ByteVector()
ByteVector(byte[])
public ByteVector(byte[] a)
Parameters
a
byte[]
ByteVector(byte[], int)
public ByteVector(byte[] a, int capacity)
Parameters
ByteVector(int)
public ByteVector(int capacity)
Parameters
capacity
int
Properties
Arr
The encapsulated array
public byte[] Arr { get; }
Property Value
- byte[]
Capacity
returns current capacity of array
public int Capacity { get; }
Property Value
this[int]
public byte this[int index] { get; set; }
Parameters
index
int
Property Value
Length
return number of items in array
public int Length { get; }
Property Value
Methods
Alloc(int)
This is to implement memory allocation in the array. Like Malloc().
public int Alloc(int size)
Parameters
size
int
Returns
TrimToSize()
public void TrimToSize()