File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 13
13
(preprocess
14
14
(pps ppx_deriving.std imandrakit.twine.ppx imandrakit.typereg.ppx))
15
15
(libraries
16
- iostream
17
16
imandrakit
18
17
imandrax-api
19
18
imandrax-api.common
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class dummy : t =
41
41
method write_entrypoint (_ : Entrypoint.t ) = ()
42
42
end
43
43
44
- class twine (out : #Iostream.Out.t ) : t =
44
+ class twine (out : #Imandrakit_twine.Encode.out ) : t =
45
45
let enc = Imandrakit_twine.Encode. create () in
46
46
let wrote_entrypoint = ref false in
47
47
@@ -81,6 +81,6 @@ class twine (out : #Iostream.Out.t) : t =
81
81
check_entrypoint_not_written () ;
82
82
wrote_entrypoint := true ;
83
83
let off = Entrypoint. to_twine enc e in
84
- let data = Imandrakit_twine.Encode. finalize_copy enc ~entrypoint: off in
85
- Iostream.Out. output_string out data
84
+ let slice = Imandrakit_twine.Encode. finalize enc ~entrypoint: off in
85
+ out#output slice.bs 0 slice.len
86
86
end
You can’t perform that action at this time.
0 commit comments