Initial update of comments to JSDoc format.
diff --git a/js/encoding/EncodingUtils.js b/js/encoding/EncodingUtils.js
index 02f0b3a..0715f27 100644
--- a/js/encoding/EncodingUtils.js
+++ b/js/encoding/EncodingUtils.js
@@ -8,7 +8,9 @@
return DataUtils.toHex(interest.encode());
}
-// Deprecated: Use interest.encode().
+/**
+ * @deprecated Use interest.encode().
+ */
function encodeToBinaryInterest(interest) {
return interest.encode();
}
@@ -17,7 +19,9 @@
return DataUtils.toHex(contentObject.encode());
}
-// Deprecated: Use contentObject.encode().
+/**
+ * @deprecated Use contentObject.encode().
+ */
function encodeToBinaryContentObject(contentObject) {
contentObject.encode();
}
@@ -80,7 +84,7 @@
}
-/*
+/**
* Decode the Uint8Array which holds SubjectPublicKeyInfo and return an RSAKey.
*/
function decodeSubjectPublicKeyInfo(array) {
@@ -91,8 +95,9 @@
return rsaKey;
}
-/* Return a user friendly HTML string with the contents of co.
- This also outputs to console.log.
+/**
+ * Return a user friendly HTML string with the contents of co.
+ * This also outputs to console.log.
*/
function contentObjectToHtml(/* ContentObject */ co) {
var output ="";