replace ref with mutable

This commit is contained in:
atagen 2024-12-01 23:57:10 +11:00
parent e463d43047
commit 9ae2e4e91e
2 changed files with 11 additions and 16 deletions

View file

@ -1,4 +1,4 @@
type serialiser = { buf : string ref; sz : int; pos : int ref; }
type serialiser = { mutable buf : string; sz : int; mutable pos : int; }
val flush : serialiser -> unit
val serialise : serialiser -> Types.chunk -> unit
val create : serialiser