(schema_hash: u64)
| 23 | |
| 24 | impl SegmentWriter { |
| 25 | pub fn new(schema_hash: u64) -> Self { |
| 26 | let mut buf = Vec::new(); |
| 27 | SegmentHeader::new(schema_hash).encode_to(&mut buf); |
| 28 | Self { |
| 29 | schema_hash, |
| 30 | buf, |
| 31 | entries: Vec::new(), |
| 32 | finished: false, |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | pub fn append_sparse(&mut self, tile_id: TileId, tile: &SparseTile) -> ArrayResult<()> { |
| 37 | let mut payload = Vec::new(); |