/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }