File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ pub use crate::neon::utf8check::*;
9
9
pub use crate :: stringparse:: * ;
10
10
11
11
pub use crate :: neon:: intrinsics:: * ;
12
+ use std:: io:: Write ;
12
13
13
14
unsafe fn find_bs_bits_and_quote_bits ( src : & [ u8 ] , dstx : Option < & mut [ u8 ] > ) -> ParseStringHelper {
14
15
// this can read up to 31 bytes beyond the buffer size, but we require
@@ -17,9 +18,11 @@ unsafe fn find_bs_bits_and_quote_bits(src: &[u8], dstx: Option<&mut [u8]>) -> Pa
17
18
let v1 : uint8x16_t = vld1q_u8 ( src. as_ptr ( ) . add ( 16 ) ) ;
18
19
19
20
match dstx {
20
- Some ( dst) => {
21
- vst1q_u8 ( dst. as_mut_ptr ( ) , v0) ;
22
- vst1q_u8 ( dst. as_mut_ptr ( ) . add ( 16 ) , v1) ;
21
+ Some ( mut dst) => {
22
+ // vst1q_u8(dst.as_mut_ptr(), v0);
23
+ // vst1q_u8(dst.as_mut_ptr().add(16), v1);
24
+ dst. write ( & src[ 0 ..16 ] ) . unwrap ( ) ;
25
+ dst. write ( & src[ 16 ..32 ] ) . unwrap ( ) ;
23
26
} ,
24
27
_ => ( )
25
28
}
You can’t perform that action at this time.
0 commit comments