Write a short string (len <= 7) inline into the fixed part.
(&mut self, pos: usize, value: &str)
| 468 | |
| 469 | /// Write a short string (len <= 7) inline into the fixed part. |
| 470 | pub fn write_string_inline(&mut self, pos: usize, value: &str) { |
| 471 | assert!( |
| 472 | value.len() <= 7, |
| 473 | "inline string must be <= 7 bytes, got {}", |
| 474 | value.len() |
| 475 | ); |
| 476 | self.write_binary_inline(pos, value.as_bytes()); |
| 477 | } |
| 478 | |
| 479 | /// Write binary data to the variable-length part (8-byte aligned, matching Java BinaryRowWriter). |
| 480 | pub fn write_binary(&mut self, pos: usize, value: &[u8]) { |
no test coverage detected