Class Element
- Namespace
- VisioForge.Core.Metadata.KLV
- Assembly
- VisioForge.Core.dll
Construct a key, length, value tuplet. Elements provide the basic mechanisms to constitute the basic encoding requirements of key, length, value tuplet as specified by STMPE 336. The length is dynamically calculated based off the value.
public class ElementInheritance
Derived
Inherited Members
Constructors
Element(byte[], byte[])
Initializes a new instance of the VisioForge.Core.Metadata.KLV.Element class.
public Element(byte[] key, byte[] value)Parameters
Properties
Key
Gets the key of the element.
public virtual byte[] Key { get; }Property Value
- byte[]
Length
Gets the BER encoded byte length of the value.
public byte[] Length { get; }Property Value
- byte[]
Name
Gets or sets the name of the element.
public virtual string Name { get; set; }Property Value
OriginalData
Gets or sets the original data of the element.
public byte[] OriginalData { get; set; }Property Value
- byte[]
Value
Gets or sets the value of the element.
public virtual byte[] Value { get; set; }Property Value
- byte[]
Methods
Bytes()
Returns the MISB encoded representation of a Key, Length, Value element.
public virtual byte[] Bytes()Returns
- byte[]
-
The MISB encoded byte array.
Len()
Returns the byte length of the value.
public virtual int Len()Returns
- int
-
The length of the value.
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
-
A string that represents the current object.