(&mut self, r: &RefRow, flags: u8)
| 314 | } |
| 315 | |
| 316 | pub fn push_ref_flagged(&mut self, r: &RefRow, flags: u8) { |
| 317 | let buf = &mut self.refs; |
| 318 | buf.extend_from_slice(&r.from_idx.to_le_bytes()); |
| 319 | buf.push(r.kind); |
| 320 | buf.push(flags); |
| 321 | buf.extend_from_slice(&[0u8; 2]); // pad |
| 322 | buf.extend_from_slice(&r.line.to_le_bytes()); |
| 323 | buf.extend_from_slice(&r.column.to_le_bytes()); |
| 324 | push_str_ref(buf, r.reference_name); |
| 325 | push_str_ref(buf, r.candidates); |
| 326 | push_str_ref(buf, r.from_id_str); |
| 327 | self.ref_count += 1; |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | /// One file's encoded tables, ready to hand across the JS boundary. |
no test coverage detected