Class BitVectorGS1
Inheritance
System.Object
BitVectorGS1
Namespace: FastReport.Barcode
Assembly: FastReport.Base.dll
Syntax
public sealed class BitVectorGS1
Constructors
BitVectorGS1()
Default constructor.
Declaration
public BitVectorGS1()
BitVectorGS1(Int32)
Constructor with size.
Declaration
public BitVectorGS1(int size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | size |
Properties
Capacity
Buffer capacity.
Declaration
public int Capacity { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Item[Int32]
Bit indexer.
Declaration
public byte this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Property Value
| Type | Description |
|---|---|
| System.Byte |
SizeInBits
Bit count.
Declaration
public int SizeInBits { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
SizeInBytes
Bit count.
Declaration
public int SizeInBytes { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
AppendBit(Byte)
Adds one bit.
Declaration
public void AppendBit(byte value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | value |
AppendBits(Int32, Int32)
Adds multiple bits.
Declaration
public void AppendBits(int value, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | value | |
| System.Int32 | count |
AppendBitVector(BitVectorGS1)
Appends vector.
Declaration
public void AppendBitVector(BitVectorGS1 other)
Parameters
| Type | Name | Description |
|---|---|---|
| BitVectorGS1 | other |
Clear()
Clears vector.
Declaration
public void Clear()
Insert(Int32, Byte)
Inserts bit.
Declaration
public void Insert(int index, byte value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Byte | value |
RemoveBits(Int32, Int32)
Removes bits.
Declaration
public void RemoveBits(int index, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Int32 | count |
ToByteArray()
Returns bytes.
Declaration
public byte[] ToByteArray()
Returns
| Type | Description |
|---|---|
| System.Byte[] |
ToString()
Binary string.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()
Xor(BitVectorGS1)
XOR with another vector.
Declaration
public void Xor(BitVectorGS1 other)
Parameters
| Type | Name | Description |
|---|---|---|
| BitVectorGS1 | other |