blob: 1eac988569db8bec0eb6b5d119751057bd63569d [file] [log] [blame]
/*
* _Body is an array of componenets
*/
var ExcludeComponent = function ExcludeComponent(_Body) {
//TODO Check BODY is an Array of componenets.
this.Body = _Body
};
ExcludeComponent.prototype.decode = function( decoder) {
body = decoder.readBinaryElement(this.getElementLabel());
};
ExcludeComponent.prototype.encode = function(encoder) {
encoder.writeElement(this.getElementLabel(), body);
};
ExcludeComponent.prototype.getElementLabel = function() { return CCNProtocolDTags.Component; };