global-header-writer.js 388 B

1234567891011121314
  1. module.exports = GlobalHeaderWriter
  2. var ExtendedHeaderWriter = require("./extended-header-writer.js")
  3. , inherits = require("inherits")
  4. inherits(GlobalHeaderWriter, ExtendedHeaderWriter)
  5. function GlobalHeaderWriter (props) {
  6. if (!(this instanceof GlobalHeaderWriter)) {
  7. return new GlobalHeaderWriter(props)
  8. }
  9. ExtendedHeaderWriter.call(this, props)
  10. this.props.type = "g"
  11. }