Commit 7af0af2
refactor(writer): delegate RleEncodingEncoder.toLongs integer arms to PrimitiveArrays
Rle.toLongs is a superset of PrimitiveArrays.toLongs: identical widen for the eight
integer ptypes, plus F32/F64/F16 raw-bit packing unique to RLE. The integer half was
a verbatim copy. Keep the float/f16 arms local and route every other ptype through
PrimitiveArrays.toLongs via the switch default (floats are matched first, so the
default only ever sees integers). Drops ~48 duplicated lines.
Ground truth green: JavaWritesRustReads (213).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent ec6b963 commit 7af0af2
1 file changed
Lines changed: 3 additions & 49 deletions
Lines changed: 3 additions & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 153 | | |
202 | 154 | | |
203 | 155 | | |
| |||
222 | 174 | | |
223 | 175 | | |
224 | 176 | | |
| 177 | + | |
| 178 | + | |
225 | 179 | | |
226 | 180 | | |
227 | 181 | | |
| |||
0 commit comments