matroska
Version:
Matroska node parser
28 lines (18 loc) • 575 B
JavaScript
/*jslint node: true, vars: true, nomen: true */
;
var util = require('util');
var Element1 = require('./element1');
;
var schema = require('../schema');
var _proto = require('./_proto');
var EMPTY_BUFFER = new Buffer([]);
function CRC_32(doc, tagId, start, length) {
Element1.call(this, doc, tagId, schema.byName.CRC_32, start, length);
this.data = EMPTY_BUFFER;
this.type = 'b';
}
util.inherits(CRC_32, Element1);
module.exports = CRC_32;
CRC_32.prototype.toString = function() {
return "[CRC-32 #" + this.tagId + "]";
};