docs: function setBit (buffer, pos, bit) {
    const byte = Math.floor(pos / 8)
    const bitPos = pos % 8
  
    if (bit === 0) {
      const mask = 255 - (1 << bitPos)
      buffer[byte] &= mask
    } else {
      const mask = (1 << bitPos)
      buffer[byte] |= mask
    }
  }