blob: 91d6cae153d628a276f1b0083664d94505c573c1 [file] [log] [blame]
var CCNProtocolDTags = require('./CCNProtocolDTags').CCNProtocolDTags;
/*
* _Body is an array of componenets
*/
var ExcludeComponent = function ExcludeComponent(_Body) {
//TODO Check BODY is an Array of componenets.
this.Body = _Body
};
exports.ExcludeComponent = ExcludeComponent;
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; };