(&mut self, r: &RefRow, flags: u8)
| 325 | } |
| 326 | |
| 327 | pub fn push_ref_flagged(&mut self, r: &RefRow, flags: u8) { |
| 328 | let buf = &mut self.refs; |
| 329 | buf.extend_from_slice(&r.from_idx.to_le_bytes()); |
| 330 | buf.push(r.kind); |
| 331 | buf.push(flags); |
| 332 | buf.extend_from_slice(&[0u8; 2]); // pad |
| 333 | buf.extend_from_slice(&r.line.to_le_bytes()); |
| 334 | buf.extend_from_slice(&r.column.to_le_bytes()); |
| 335 | push_str_ref(buf, r.reference_name); |
| 336 | push_str_ref(buf, r.candidates); |
| 337 | push_str_ref(buf, r.from_id_str); |
| 338 | self.ref_count += 1; |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | /// One file's encoded tables, ready to hand across the JS boundary. |
no test coverage detected