Correct comments for readBinaryElement and readBlob.
diff --git a/js/encoding/BinaryXMLDecoder.js b/js/encoding/BinaryXMLDecoder.js
index 0389d76..4556c57 100644
--- a/js/encoding/BinaryXMLDecoder.js
+++ b/js/encoding/BinaryXMLDecoder.js
@@ -339,19 +339,14 @@
};
-// returns a byte[]
+// Returns a Uint8Array.
BinaryXMLDecoder.prototype.readBinaryElement = function(
//long
startTag,
//TreeMap<String, String>
attributes){
- //byte []
- var blob = null;
-
this.readStartElement(startTag, attributes);
- blob = this.readBlob();
-
- return blob;
+ return this.readBlob();
};
@@ -383,15 +378,12 @@
};
-//returns a uint8array
+// Read a blob as well as the end element. Returns a Uint8Array.
BinaryXMLDecoder.prototype.readBlob = function() {
- //uint8array
-
- var blob = this.decodeBlob();
- this.readEndElement();
- return blob;
-
- };
+ var blob = this.decodeBlob();
+ this.readEndElement();
+ return blob;
+};
//CCNTime