UNPKG

gulp-armapbo

Version:

The plugin for Gulp which allows to pack ArmA pbo files from sources.

21 lines (19 loc) 616 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert_1 = require("../util/assert"); class HeaderExtension { static getBoundary() { return new HeaderExtension('', ''); } constructor(name, value) { assert_1.Assert.isNotNull(name, 'name'); assert_1.Assert.isNotNull(value, 'value'); this.name = name; this.value = value; } getSize() { return this.name.length + this.value.length + 2; //2 strings +2 terminating zeroes } } exports.HeaderExtension = HeaderExtension; //# sourceMappingURL=headerExtension.js.map