mirror of
https://git.fuwafuwa.moe/SMLoadrDev/SMLoadr
synced 2024-08-29 03:32:33 +02:00
22 lines
468 B
JavaScript
22 lines
468 B
JavaScript
|
var MetaDataBlock = module.exports = function(isLast, type) {
|
||
|
this.isLast = isLast;
|
||
|
this.type = type;
|
||
|
this.error = null;
|
||
|
this.hasData = false;
|
||
|
this.removed = false;
|
||
|
}
|
||
|
|
||
|
MetaDataBlock.prototype.remove = function() {
|
||
|
this.removed = true;
|
||
|
}
|
||
|
|
||
|
MetaDataBlock.prototype.parse = function(buffer) {
|
||
|
}
|
||
|
|
||
|
MetaDataBlock.prototype.toString = function() {
|
||
|
var str = "[MetaDataBlock]";
|
||
|
str += " type: " + this.type;
|
||
|
str += ", isLast: " + this.isLast;
|
||
|
return str;
|
||
|
}
|