Esempio n. 1
0
 /// <summary>
 /// Create a new KeyLocator with default values.
 /// </summary>
 ///
 public KeyLocator()
 {
     this.type_ = net.named_data.jndn.KeyLocatorType.NONE;
     this.keyData_ = new Blob();
     this.keyName_ = new ChangeCounter(new Name());
     this.changeCount_ = 0;
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new KeyLocator with a copy of the fields in keyLocator.
 /// </summary>
 ///
 /// <param name="keyLocator">The KeyLocator to copy.</param>
 public KeyLocator(KeyLocator keyLocator)
 {
     this.type_ = net.named_data.jndn.KeyLocatorType.NONE;
     this.keyData_ = new Blob();
     this.keyName_ = new ChangeCounter(new Name());
     this.changeCount_ = 0;
     type_ = keyLocator.type_;
     keyData_ = keyLocator.keyData_;
     keyName_.set(new Name(keyLocator.getKeyName()));
 }
Esempio n. 3
0
 public void setType(KeyLocatorType type)
 {
     type_ = type;
     ++changeCount_;
 }
Esempio n. 4
0
 public void setType(KeyLocatorType type)
 {
     type_ = type;
     ++changeCount_;
 }
Esempio n. 5
0
 /// <summary>
 /// Clear fields and reset to default values.
 /// </summary>
 ///
 public void clear()
 {
     type_ = net.named_data.jndn.KeyLocatorType.NONE;
     keyData_ = new Blob();
     keyName_.set(new Name());
     ++changeCount_;
 }