Ejemplo n.º 1
0
 /// <summary>
 /// Inserts a new OBJECT IDENTIFIER leaf into this node's collection of children.
 /// </summary>
 /// <param name="tag">The tag of the leaf to create and insert.</param>
 /// <param name="values">The value of the leaf to create and insert.</param>
 public static void InsertOid(this EmberNode node, BerTag tag, int[] values)
 {
     node.Insert(new ObjectIdentifierEmberLeaf(tag, values));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Inserts a new RELATIVE OBJECT leaf into this node's collection of children.
 /// </summary>
 /// <param name="tag">The tag of the leaf to create and insert.</param>
 /// <param name="value">The value of the leaf to create and insert.</param>
 public static void InsertRelativeOid(this EmberNode node, BerTag tag, int[] value)
 {
     node.Insert(new RelativeOidEmberLeaf(tag, value));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Inserts a new OCTET STRING leaf into this node's collection of children.
 /// </summary>
 /// <param name="tag">The tag of the leaf to create and insert.</param>
 /// <param name="value">The value of the leaf to create and insert.</param>
 public static void Insert(this EmberNode node, BerTag tag, byte[] value)
 {
     node.Insert(new OctetStringEmberLeaf(tag, value));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Inserts a new UTF8String leaf into this node's collection of children.
 /// </summary>
 /// <param name="tag">The tag of the leaf to create and insert.</param>
 /// <param name="value">The value of the leaf to create and insert.</param>
 public static void Insert(this EmberNode node, BerTag tag, string value)
 {
     node.Insert(new StringEmberLeaf(tag, value));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Inserts a new REAL leaf into this node's collection of children.
 /// </summary>
 /// <param name="tag">The tag of the leaf to create and insert.</param>
 /// <param name="value">The value of the leaf to create and insert.</param>
 public static void Insert(this EmberNode node, BerTag tag, double value)
 {
     node.Insert(new RealEmberLeaf(tag, value));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Inserts a new INTEGER (32bit) leaf into this node's collection of children.
 /// </summary>
 /// <param name="tag">The tag of the leaf to create and insert.</param>
 /// <param name="value">The value of the leaf to create and insert.</param>
 public static void Insert(this EmberNode node, BerTag tag, int value)
 {
     node.Insert(new IntegerEmberLeaf(tag, value));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Inserts a new boolean leaf into this node's collection of children.
 /// </summary>
 /// <param name="tag">The tag of the leaf to create and insert.</param>
 /// <param name="value">The value of the leaf to create and insert.</param>
 public static void Insert(this EmberNode node, BerTag tag, bool value)
 {
     node.Insert(new BooleanEmberLeaf(tag, value));
 }