Lines Matching defs:data
80 var data = ev.data;
82 this.msgbuf = data;
84 const tmp = new Uint8Array(this.msgbuf.byteLength + data.byteLength);
86 tmp.set(new Uint8Array(data), this.msgbuf.byteLength);
118 var data = new DataView(buf, 0, 18);
120 data.setUint32(0, 0x4e42444d);
121 data.setUint32(4, 0x41474943);
123 data.setUint32(8, 0x49484156);
124 data.setUint32(12, 0x454f5054);
126 data.setUint16(16, NBD_FLAG_FIXED_NEWSTYLE | NBD_FLAG_NO_ZEROES);
135 var data = new DataView(buf, 0, 4);
136 this.client.flags = data.getUint32(0);
142 var data = new DataView(buf, 0, 16);
143 if (data.getUint32(0) != 0x49484156 || data.getUint32(4) != 0x454f5054) {
147 var opt = data.getUint32(8);
148 var len = data.getUint32(12);
181 this._create_cmd_response = function (req, rc, data = null) {
183 if (data) len += data.byteLength;
190 if (data) new Uint8Array(resp, 16).set(new Uint8Array(data));
211 /* we don't support writes, so nothing needs the data at present */
212 /* req.data = buf.slice(28); */
227 /* we also need length bytes of data to consume a write