Closed collinsmith closed 3 years ago
Re-opening this issue. Validations on multi-byte slices failed in some cases. Testing data\global\CHARS\BA\LG\BALGLITTNHTH.dcc
pixelCodeAndDisplacementBitStream
for correct behavior. I think this is due to how the underlying ByteBuf
is sliced -- must include cache and a slice containing any future bytes that belong to the bit stream, however in the case of the above file the correct number of bytes are sliced, but the position appears to be incorrect and is exceeding bounds of the slice.
Should be resolved via 64fa1611e45752abb359ca193d940e516eb9ffc9
DCC
requires reading unalignedBitInput
slices. Workaround could be to never slice the stream, however this would require implementing support for generating duplicates ofBitInput
instances.