code: function Packet(e) {
      if(e instanceof Buffer) {
          this.data   = e;
          this.length = this.data.length;
      }else if((typeof Buffer) != 'undefined' && e.data instanceof Buffer) {
          this.data   = e.data;
          this.length = this.data.length;
      }else{
          this.data   = new DataView(e.data);
          this.length = this.data.byteLength;
      }
  
      this.offset = 0;
  }
docs: this file is for internal use with packets